1. Calculators
  2. Portfolio Management & Performance

Efficient Frontier, Minimum Variance & Max Sharpe Calculator

Enter expected returns, volatilities and correlations for up to eight assets. The calculator finds the minimum variance portfolio, the maximum Sharpe (tangency) portfolio and the efficient frontier, with or without short selling.

Updated Oct 16, 2026Free · no sign-upFormulas tested

Your inputs

Enter your expected return and volatility for each asset and how they move together. The calculator finds the minimum variance and maximum Sharpe portfolios and traces the efficient frontier between them.

Assets (2 to 8)
AssetExpected return %Volatility %
Annual expected return and annualized volatility (standard deviation) for each asset class or fund. These are forward-looking assumptions, not past returns.
One row per line, assets in the same order as above. A lower triangle (1 number on line 1, 2 on line 2, …) also works, and a single number sets every pair to that correlation.
%
Yield on short-term Treasury bills; it sets where the capital market line starts.
Weights

Results

Maximum Sharpe ratio0.242Tangency portfolio: return 6.33%, volatility 9.64%
Max Sharpe: expected return
6.33%
Max Sharpe: volatility
9.64%
Min variance: expected return
4.76%
Min variance: volatility
5.64%
Lowest single-asset volatility: 6.00%
Min variance: Sharpe ratio
0.135
Best single-asset Sharpe ratio
0.222
International stocks

The minimum variance portfolio puts 87% in Investment-grade bonds and has 5.6% volatility. The maximum Sharpe portfolio earns 0.24 per unit of risk, against 0.22 for the best single asset; its largest position is 44% in Investment-grade bonds.

Efficient frontier: expected return against volatility

Efficient frontierCapital market line (cash + max Sharpe)
4%5%6%7%8%9%0%6.0%7.4%9.4%11.3%13.7%16.3%Min varianceMax Sharpe

Horizontal axis: volatility; vertical axis: expected return. The frontier runs from the minimum variance portfolio to the highest-return asset. The dashed line starts at the risk-free rate and touches the frontier at the maximum Sharpe portfolio.

Assets and optimal weights

AssetExpected returnVolatilitySharpe ratioMin variance weightMax Sharpe weight
US stocks7.50%16.00%0.224.1%25.6%
International stocks8.00%18.00%0.223.1%30.3%
Investment-grade bonds4.50%6.00%0.0886.8%44.1%
Commodities5.00%20.00%0.056.0%0.0%
Portfolio4.76% / 6.33%5.64% / 9.64%0.14 / 0.24100%100%

Portfolio row: minimum variance / maximum Sharpe. A negative weight is a short position.

Points on the efficient frontier

PortfolioReturnVolatilitySharpeUS stocksInternational stocksInvestment-grade bondsCommodities
Min variance4.76%5.64%0.144.1%3.1%86.8%6.0%
4.87%5.66%0.155.6%5.1%84.2%5.2%
4.98%5.74%0.177.1%7.0%81.6%4.4%
5.09%5.86%0.198.5%8.9%79.0%3.6%
5.19%6.03%0.2010.0%10.9%76.4%2.8%
5.30%6.24%0.2111.4%12.8%73.8%1.9%
5.41%6.48%0.2212.9%14.8%71.2%1.1%
5.52%6.76%0.2214.4%16.7%68.6%0.3%
5.63%7.07%0.2315.8%18.6%65.6%0.0%
5.73%7.41%0.2317.3%20.4%62.3%0.0%

Results are estimates from the numbers you enter. They are not financial, tax or legal advice.

How to use the efficient frontier calculator

  1. List the assets. For each asset class or fund, enter an expected annual return and an annualized volatility. These are forward-looking assumptions: capital market assumptions published by asset managers, your own estimates, or long-run averages adjusted for today’s yields. The example uses four broad asset classes.
  2. Enter the correlation matrix, one row per line, in the same order as the assets. You can paste a full matrix, type only the lower triangle, or enter a single number to give every pair the same correlation. The matrix must be positive definite; the calculator tells you if it is not.
  3. Set the risk-free rate, typically the Treasury bill yield. It only affects the maximum Sharpe portfolio and the capital market line.
  4. Choose long-only or short selling allowed. Long-only keeps every weight between 0% and 100%, which is what most investors can actually hold.

The results show both special portfolios, the chart traces the frontier, and the tables list every asset’s weight and about 30 portfolios along the curve.

How the portfolios are calculated

With weights w, expected returns μ and covariance matrix Σ (built from the volatilities and correlations), a portfolio’s expected return and volatility are:

μp = wᵀμ σp = √(wᵀΣw) Σij = ρij σi σjThe weights add up to 1. ρij is the correlation between assets i and j, and σi the volatility of asset i.

When short selling is allowed, all three answers have closed forms:

Minimum variance: w = Σ−11 ÷ (1ᵀΣ−11)
Maximum Sharpe: w = Σ−1(μ − rf1) ÷ 1ᵀΣ−1(μ − rf1)
Frontier: σ2(m) = (A m2 − 2B m + C) ÷ (AC − B2)1 is a vector of ones, rf the risk-free rate and m a target return. A = 1ᵀΣ−11, B = 1ᵀΣ−1μ, C = μᵀΣ−1μ. The tangency portfolio exists only when rf is below the minimum variance return.

Long-only weights have no formula. Each portfolio solves a quadratic program: minimize wᵀΣw subject to the weights summing to 1, a target return, and w ≥ 0. The calculator solves it exactly by active-set enumeration: for every possible set of held assets it solves the equality-constrained problem in closed form, discards sets that would need a negative weight, and keeps the lowest-variance survivor. Because the problem is strictly convex, that survivor is the global optimum. The maximum Sharpe portfolio is found the same way, after rescaling it into the equivalent problem of minimizing variance for one unit of excess return.

A worked example

Four asset classes: US stocks (7.5% expected return, 16% volatility), international stocks (8%, 18%), investment-grade bonds (4.5%, 6%) and commodities (5%, 20%). Stocks are correlated 0.8 with each other and only weakly with bonds; the risk-free rate is 4%, long-only.

The minimum variance portfolio holds 86.8% in bonds and small slices of everything else. Its volatility is 5.64%, below the 6% of bonds alone, because the other assets are barely correlated with bonds. It is expected to return 4.76%.

The maximum Sharpe portfolio holds 25.6% US stocks, 30.3% international stocks, 44.1% bonds and nothing in commodities. It is expected to return 6.33% with 9.64% volatility, a Sharpe ratio of 0.242 against 0.222 for the best single asset.

Commodities drop out of the tangency portfolio even though they help the minimum variance mix: with a 5% expected return they add too little excess return to pay for their 20% volatility.

Reading the chart

The blue curve is the efficient frontier: for each level of volatility, the highest expected return available from these assets. It starts at the minimum variance portfolio and rises to the highest-return asset (long-only) or beyond (with shorting). Portfolios below or to the right of the curve take more risk than necessary for their return.

The dashed line is the capital market line. It starts at the risk-free rate and touches the frontier at the maximum Sharpe portfolio. Every point on it is a mix of cash and that one portfolio, and every such mix has the same Sharpe ratio. This is Tobin’s separation result: an investor who can lend and borrow at the risk-free rate should hold the tangency portfolio and adjust risk with cash, rather than move along the curve. Points above the tangency assume borrowing at the risk-free rate, which few investors can do.

Long-only or short selling

Setting Max Sharpe ratio Return Volatility Short positions
Long-only 0.242 6.33% 9.64% none
Short selling allowed 0.244 6.47% 10.16% 6.8%

Removing the constraint lets the optimizer short commodities (-6.8%) to fund larger positions in the other three assets. The improvement in the Sharpe ratio is small, which is common: the long-only constraint often blocks positions that look attractive only because of noise in the inputs. The minimum variance portfolio is the same in both settings here because none of its weights wanted to go negative.

Why optimizers concentrate: estimation error

A mean-variance optimizer treats its inputs as exact. They are not. With realistic volatility, an asset’s average return measured over twenty years still has an error band of several percentage points, so the expected returns you type in are educated guesses. Studies in the early 1990s found that errors in expected returns do far more damage to optimized portfolios than errors in variances or covariances.

The optimizer’s job is to find differences between assets and exploit them. It cannot tell a real difference from an estimation error, so it piles into the assets whose returns were overestimated and whose risks were underestimated. Richard Michaud described mean-variance optimizers as “estimation-error maximizers” for this reason (1989). The example shows it clearly:

Change to one input US stocks International stocks Bonds Max Sharpe
The example 25.6% 30.3% 44.1% 0.242
US stocks expected 8.5% instead of 7.5% 65.0% 0.0% 35.0% 0.287
International stocks expected 7% instead of 8% 56.2% 0.0% 43.8% 0.227

A one-point change in a single expected return, well inside any reasonable error band, removes international stocks from the portfolio entirely. Two highly correlated assets with slightly different expected returns are the classic trigger: the optimizer sees them as near substitutes and buys only the one that looks better.

Practitioners fight this in several ways:

  • Constraints: long-only limits, maximum weights per asset, or bands around a benchmark.
  • Better inputs: shrinking expected returns toward a common value, or deriving them from market equilibrium as the Black–Litterman model does, and shrinking the covariance matrix toward a structured target (Ledoit–Wolf).
  • Resampling: Michaud’s resampled efficiency averages the optimal weights over many simulated input sets, which spreads weight across near-equivalent assets.
  • Ignoring returns: minimum variance and risk parity portfolios avoid the least reliable input altogether.

Out-of-sample research has also found that simple equal weighting is surprisingly hard to beat once estimation error is counted. That is a reason to treat the optimizer’s answer as a starting point, not a verdict.

What moves the answer most

Change Max Sharpe weight in bonds Max Sharpe ratio
The example (4% risk-free rate) 44.1% 0.242
Risk-free rate 2% 75.4% 0.530
Stock–bond correlations about 0.5 instead of about 0.1 0.0% 0.232

A lower risk-free rate makes bonds’ excess return look larger, so the tangency moves down the frontier toward them. A higher stock–bond correlation removes the diversification benefit that earned bonds their place.

What this calculator does not include

  • Uncertainty in the inputs. Results are only as good as the assumptions; the calculator does not resample or shrink them.
  • A single period. Mean-variance analysis looks one period ahead and ignores rebalancing, compounding and changing correlations, which tend to rise in crises.
  • Volatility as the only risk. Skewness, fat tails, liquidity and drawdowns are not considered.
  • Costs, taxes and constraints such as borrowing costs on shorts, turnover limits or minimum position sizes.
  • Leverage. With shorting allowed, weights still sum to 100%; the borrowing part of the capital market line is shown only for reference.

Frequently asked questions

What is the difference between the minimum variance and the maximum Sharpe portfolio?
The minimum variance portfolio has the lowest volatility of any mix of the assets and ignores expected returns entirely. The maximum Sharpe portfolio has the highest expected excess return per unit of volatility. In the example the first has 5.64% volatility and a Sharpe ratio of 0.135; the second has 9.64% volatility and a Sharpe ratio of 0.242.
Why is the minimum variance portfolio popular with practitioners?
Because it needs no expected returns, which are the hardest input to estimate. Volatilities and correlations are measured far more reliably from past data, so minimum variance weights are more stable than maximum Sharpe weights. The cost is that the portfolio is usually dominated by the lowest-volatility assets.
Should I use historical returns as expected returns?
Usually not on their own. Average returns over even ten or twenty years carry wide error bands, and an optimizer turns those errors directly into extreme weights. Long-run capital market assumptions, equilibrium returns implied by market weights, or simply assuming equal Sharpe ratios across assets tend to give more sensible portfolios.
Does allowing short selling always help?
On paper it can only raise the maximum Sharpe ratio, because it removes a constraint. Here it moves from 0.242 to 0.244, with short positions totaling 6.8%. In practice borrowing costs, margin and the extra estimation risk often cancel such a small gain.
How many assets can the calculator handle?
Up to eight. The long-only optimizer checks every possible set of held assets and solves each one exactly, which is instant for eight assets. For hundreds of securities you would need a dedicated quadratic programming solver and, more importantly, a structured covariance estimate.

Related calculators

All calculators →

This calculator is for education and planning. It uses the formulas described above and the inputs you provide; real results depend on fees, taxes, timing and other details that a general tool cannot know. PromtFinance does not give personal financial advice. Check important decisions with your provider or a qualified professional.