Two-Asset Efficient Frontier and Minimum Variance Calculator

Mixing two risky assets traces a curve of possible portfolios. Its left-most point is the minimum-variance portfolio, the least risky mix; the efficient frontier is the upper part of the curve from there. Adding a risk-free asset, the best risky mix is the tangency portfolio, which has the highest Sharpe ratio.

For information only, not financial or investment advice.

Inputs

%
%
%
%
%

Results

Minimum-variance weight in asset 1
82%
Minimum-variance expected return
8.9
%
Minimum-variance standard deviation
11.45
%
Tangency weight in asset 1
40
%
Tangency expected return
11
%
Tangency standard deviation
14.2
%
Tangency Sharpe ratio
0.4226

    RefINV-PRT-002
    MethodMarkowitz two-asset frontier; tangency with the capital allocation line
    UnitsSI
    Date2026-11-24

    Working

    Calculated in SI base units; inputs are converted from the units you choose.

    1. CovarianceCov = ρσ₁σ₂0.3 × 0.12 × 0.2 = 0.0072
    2. Minimum-variance weight of asset 1w₁ = (σ₂² − Cov) ÷ (σ₁² + σ₂² − 2Cov)(0.04 − 0.0072) ÷ 0.04 = 82%
    3. Minimum-variance portfolioE = w₁E₁ + w₂E₂; σ from the two-asset formulaE = 8.9%, σ = 11.4473%
    4. Tangency (optimal risky) weight of asset 1w₁ = [(E₁ − rf)σ₂² − (E₂ − rf)Cov] ÷ [(E₁ − rf)σ₂² + (E₂ − rf)σ₁² − (E₁ − rf + E₂ − rf)Cov]0.000624 ÷ 0.00156 = 40%
    5. Tangency portfolioSharpe = (E − rf) ÷ σE = 11%, σ = 14.1986%, Sharpe = 0.4226

    Points on the frontier

    Weight in asset 1Weight in asset 2Expected returnStandard deviationSharpe ratio
    0%100%13%20%0.4
    10%90%12.5%18.396%0.4077
    20%80%12%16.876%0.4148
    30%70%11.5%15.466%0.4203
    40%60%11%14.199%0.4226
    50%50%10.5%13.115%0.4194
    60%40%10%12.264%0.4077
    70%30%9.5%11.696%0.3847
    80%20%9%11.454%0.3492
    90%10%8.5%11.559%0.3028
    100%0%8%12%0.25
    82% (minimum variance)18%8.9%11.447%0.3407
    40% (tangency)60%11%14.199%0.4226

    Using the two portfolios

    No investor who prefers more return and less risk should hold a mix below the minimum-variance point, because a mix above it has the same risk and a higher return. If you can also lend or borrow at the risk-free rate, every efficient combination is a blend of cash and the tangency portfolio: how much of each depends on your tolerance for risk, but the risky part stays the same.

    Assumptions and limits

    • Estimates of returns, standard deviations and correlation are for the same horizon.
    • Borrowing and lending at the risk-free rate for the tangency portfolio.
    • Without short sales, weights are kept between 0% and 100%.

    References

    • Markowitz, H. (1952). Portfolio Selection. Journal of Finance, 7(1), 77–91.
    • Bodie, Kane and Marcus, Investments, McGraw-Hill (the two-risky-asset frontier and the optimal risky portfolio).

    Questions

    What are the minimum-variance and tangency mixes for the textbook bond and stock funds?
    With a bond fund at 8% return and 12% risk, a stock fund at 13% and 20%, correlation 0.3 and a 5% risk-free rate, the minimum-variance mix holds 82% in bonds (return 8.9%, risk 11.45%). The tangency portfolio holds 40% in bonds with a return of 11%, risk 14.2% and a Sharpe ratio of 0.42, the figures in Bodie, Kane and Marcus.
    Why does the least risky mix hold some stocks?
    Because the two funds are not perfectly correlated, adding a little of the riskier fund to the bond fund lowers total risk at first. The benefit is larger when the correlation is lower.

    For information only, not financial or investment advice. Results depend on the figures you enter and on the assumptions listed above; lenders, banks and product providers may calculate differently. Read the disclaimer.