Efficient Frontier Calculator for Long-Only Portfolios
Add expected returns to explore the upper efficient frontier.
Supply an annual covariance matrix to find an allocation with the lowest variance under long-only weights. The tool does not estimate market inputs or recommend assets.
This tool asks a narrow allocation question: which non-negative weights minimise variance for the covariance matrix entered? It does not need expected returns and therefore cannot decide whether the resulting expected reward is attractive.
The matrix must be symmetric and positive semidefinite. These conditions prevent an internally inconsistent covariance model; an invalid matrix is rejected rather than silently repaired.
Weights must sum to one and cannot be negative. The solver checks combinations of active assets so an asset may receive a zero weight at the optimum.
Portfolio variance includes both individual variances and cross-asset covariances. The square root converts the resulting variance into the reported annual volatility.
Sample inputs demonstrate the method. They are not a forecast or product offer.
The first example has two assets with variance 0.04 each and zero covariance. Equal half-weights produce variance 0.25 × 0.04 + 0.25 × 0.04 = 0.02, lower than either asset held alone.
Sample inputs demonstrate the method. They are not a forecast or product offer.
The result is the lowest modelled variance within this long-only asset set. Adding short positions, leverage, minimum holdings or trading costs would create a different optimisation problem.
A singular matrix can permit several equally low-risk portfolios. One feasible minimiser is shown; the displayed weights need not be the only allocation with that variance.
Find long-only weights with the lowest variance for your supplied covariance matrix.
Supports 2–8 assets. A singular covariance matrix can have several equally good allocations; one minimiser is reported.
Read our calculation and testing approach.