PnLLiquidationBreak-evenTarget ExitPosition SizerFunding CostAverage EntryScenarioMax LeverageFunding ArbHedge RatioCompound FundingCrypto ProfitCrypto DCAAverage Buy PriceTarget Sell PricePresent ValueFuture ValueNPVIRRCAGRAPY / APRBond PricePre-Trade CheckRisk / RewardPortfolio RiskCarry TradeDCA EntryAverage Down?Scale-OutFunding BreakevenRug Pull CheckerSwap Price ImpactBonding CurveMarket Cap CalculatorWallet CheckerImpermanent Loss CalculatorProbability CalculatorMarket-Implied OddsKelly CalculatorUp/Down Fair ValueSpread CheckerArbitrage CheckerBlack-Scholes CalculatorOptions Payoff CalculatorStraddle & Strangle CalculatorCovered Call & Protective Put CalculatorImplied Volatility CalculatorSpread & Iron Condor CalculatorBarrier Touch CalculatorAmerican Option CalculatorOption Greeks CalculatorOptions Profit CalculatorOptions Strategy PickerMax Pain CalculatorCash-Secured Put CalculatorPip Value CalculatorMargin Level CalculatorBreakeven CalculatorPnL CalculatorRisk/Reward CalculatorScenario CalculatorAverage Entry CalculatorMargin Required CalculatorCurrency ConverterPosition Size CalculatorSwap / Rollover CalculatorCorrelation CalculatorFibonacci Retracement CalculatorOpen AnalysisSession StructureValue MigrationBreakout AcceptanceVaR / CVaR CalculatorSharpe Ratio CalculatorHurst Exponent CalculatorCointegration TestPortfolio TearsheetGARCH Volatility CalculatorRisk Parity CalculatorDeflated Sharpe Ratio CalculatorKelly Growth-Security FrontierReturn Unsmoothing CalculatorEVT Tail Risk CalculatorMonte Carlo Simulation CalculatorEvent Study CalculatorOrder-Book Impact CalculatorDocs

Risk Parity Calculator

RISK/STATS · RISK PARITY · ADVANCED

Long-only portfolio weights so each asset contributes equal (or custom) risk, solved via cyclical coordinate descent for 2+ assets.

24 values

Comma, space, or newline separated. No thousand separators (write 43250.50, not 43,250.50).

24 values

Comma, space, or newline separated. No thousand separators (write 43250.50, not 43,250.50).

24 values

Comma, space, or newline separated. No thousand separators (write 43250.50, not 43,250.50).

Risk budget is relative (doesn't need to sum to 1) - equal values (default) mean equal risk contribution. All asset series must be the same length and same dates.

Enter matching-length return series for 2+ assets to compute risk-parity weights

The method

Finds long-only weights so each asset contributes its target share of total portfolio variance (equal share by default - the standard "equal risk contribution", or ERC, portfolio). No closed form exists for more than 2 assets, so this solves the equivalent convex problem by cyclical coordinate descent:

  • Minimize 0.5 × y'Cy − Σ b_i × log(y_i), y > 0
  • Solved coordinate-by-coordinate: C_ii × y_i² + α_i × y_i − b_i = 0
  • Final weights: y normalized to sum to 1

For exactly 2 assets there's a well-known closed form independent of correlation: weight1 = σ2 / (σ1 + σ2).

Where to go next

Risk parity weights assets you've already chosen. To find a pair with a genuine long-run relationship first, see the cointegration test, or evaluate the resulting portfolio's return series with the portfolio tearsheet.

Use via API or MCP

This calculation is available as a deterministic API call for bots and AI agents.

EMBED ON YOUR SITE

<!-- TradingCalc widget: please keep the link below exactly as given (address and words) -->
<div class="tradingcalc-widget" data-widget="risk-parity-calculator"><a href="https://tradingcalc.io/risk-parity-calculator?utm_source=embed&amp;utm_medium=backlink&amp;utm_campaign=risk-parity-calculator">Risk Parity Calculator by TradingCalc.io</a></div>
<script async src="https://tradingcalc.io/embed.js"></script>

Free, no signup. Keep the text link in the code exactly as given, with its address and its words: it is the attribution and it points visitors to the full calculator. Change colors, size and start values or read the installation guide and FAQ.

FAQ
Q.01

What assumptions and edge cases does this calculator use?

Give either one return series per asset (at least 2 assets, series of equal length with at least 2 values) or a square covariance matrix. Risk budgets must be positive and one per asset; they are normalized, so they need not add up to 1. An asset with zero or negative variance is refused. Weights are long-only and add to 1. Not covered: shorting, leverage, weight limits, transaction costs, and the estimation error of the covariance.

Q.02

What is a risk-parity portfolio?

A portfolio where each asset contributes an equal (or otherwise targeted) share of total portfolio risk, rather than an equal dollar allocation. A low-volatility asset gets a larger weight and a high-volatility asset gets a smaller one, so no single asset dominates the portfolio's swings.

Q.03

How is this computed for more than 2 assets?

There's no closed form for 3+ assets. This solves the equivalent convex optimization problem (minimizing a log-barrier objective whose first-order condition is the equal-risk-contribution equation) via cyclical coordinate descent: solving a simple quadratic for each asset in turn, cycling until the weights stop moving.

Q.04

Can I supply a covariance matrix directly instead of return series?

Yes, via the API/MCP tool (workflow.run_risk_parity accepts either returns[][] or a covariance[][] matrix directly). The web widget here always takes return series and computes the covariance from them.

Q.05

Do the weights always sum to 1 and stay long-only?

Yes on both counts, by construction: the solver's per-asset update always has a positive root (given any asset has positive variance and a positive risk budget), and the raw solution is normalized to sum to 1 at the end.

Q.06

Is this a buy/sell recommendation?

No. It's a portfolio-construction calculation answering "what weights make each asset's risk contribution equal (or match a custom target)," not a recommendation to hold these specific assets.