Quant Sandbox
DerivativesPortfolio & RiskFixed IncomeCorporate FinanceStochastic ModelsGuide
Portfolio & Risk
Risk & ReturnBeta
CAPMBeta
Portfolio LabBeta
Portfolio OptimizationBeta
Connected Guides
  • Returns and volatility
  • Diversification and correlation

© 2026 Quant Sandbox · A study aid for quantitative finance

Privacy & dataNo cookies

This site does not use cookies and asks for no personal data. It keeps a few small settings in your browser's local storage — your chosen theme and language, the sidebar layout, and your progress and answers in the Guides — so it remembers them on your next visit. This data never leaves your device; clearing your browser storage removes it. Inputs you change can also be captured in the page URL, so you can share or bookmark a specific setup. The site uses Vercel Web Analytics, a privacy-friendly, cookieless service that records only anonymous, aggregated usage (such as page views) without identifying you or tracking you across other sites.

Risk & Return

Explore allocations between a risky asset and the risk-free rate along the capital allocation line.

Parameters

Risky asset
%
%
Risk-free asset
%
Allocation
100%
Risk-freeRisky assetLeveraged

Drag the point along the CAL, or set the risky weight.

Risk aversion & optimum
3.0
110

Optimal risky weight y* = (μ − rf) / (Aσ²) = 62%.

Asset B
Capital allocation line (CAL)
CALIndifference curve

Drag the asset points to change μ and σ; the CAL pivots live. The dashed curve is the indifference curve through y*.

Current portfolio
Return9.0%
Volatility18.0%
Sharpe0.33
Risky weight100%
Calibration: 90% range

What will the portfolio return next year? Set a 90% range (now E[rₚ] = 9.0%, σₚ = 18.0%).

Reveal draws one year from N(E[rₚ], σₚ²); every round is a fresh year. Changing an input starts a new round.

-55.0%75.0%
Your 90% range: 4.0% … 14.0%

About this tool

Combining a risky portfolio with a risk-free asset traces the capital allocation line. This tool shows how expected return and volatility change as you shift weight between the two, how leverage extends the line, and how the Sharpe ratio — excess return per unit of risk — sets its slope.

Frequently asked questions

What is the Sharpe ratio?

Expected return minus the risk-free rate, divided by volatility. It is the slope of the capital allocation line and the same for every mix of the risky asset with cash.

What does leverage do on the capital allocation line?

Borrowing at the risk-free rate to hold more than 100% in the risky asset moves you further along the same line: higher expected return and proportionally higher volatility.