Data4Insight2Action

How to use beta, correlation and volatility to build a diversified portfolio

Free, no sign-up, no email. Your numbers stay on your computer.

Mixing holdings that don't move together can cut a portfolio's risk by more than its return. See how 61 popular stocks and ETFs, or your own tickers, move with the S&P 500: their beta, correlation and volatility from real monthly returns. Then build two portfolios of up to five holdings, compare them side by side, and stress test both on the market over the same time period, as far back as November 2015, through the 2020 COVID crash, the 2022 bear market and the 2025 “Liberation Day” tariff shock.

Last 5 years (60 months): Nov 2021 – Oct 2026
Beta, correlation, volatility and R-squared to the S&P 500, from monthly returns
Show on chart
AAPLApple Inc.Stock0.671.0724.7%45%60
AMZNAmazon.com, Inc.Stock0.681.4934.0%46%60
AVGOBroadcom Inc.Stock0.551.4942.0%30%60
BACBank of America Corp.Stock0.681.2027.3%46%60
BNDVanguard Total Bond Market ETFETF · Bonds0.610.266.5%38%60
BRK.BBerkshire Hathaway Inc. (Class B)Stock0.470.5819.0%22%60
CATCaterpillar Inc.Stock0.641.6539.6%41%60
CEGConstellation Energy Corp.Stock0.381.1245.9%14%57
CEW.TOiShares Equal Weight Banc & Lifeco ETFETF · Canadian stocks · CAD0.620.6315.6%39%60
COSTCostco Wholesale Corp.Stock0.560.8423.5%31%60
CVXChevron Corp.Stock0.250.4829.0%6%60
CYH.TOiShares Global Monthly Dividend Index ETF (CAD-Hedged)ETF · Global stocks · CAD0.630.5212.8%39%60
DISThe Walt Disney CompanyStock0.671.4433.4%44%60
ENORiShares MSCI Norway ETFETF · International stocks0.490.7022.0%24%60
ETHAiShares Ethereum Trust ETFETF · Crypto0.422.6675.4%18%27
FCID.TOFidelity International High Dividend ETFETF · International stocks · CAD0.500.3711.4%25%60
FCIV.TOFidelity International Value ETFETF · International stocks · CAD0.540.4613.3%29%60
FCUV.TOFidelity U.S. Value ETFETF · U.S. stocks · CAD0.760.6813.8%58%60
FIE.TOiShares Canadian Financial Monthly Income ETFETF · Canadian income · CAD0.710.5912.8%50%60
FXEInvesco CurrencyShares Euro TrustETF · Currency0.370.187.5%14%60
GEGE AerospaceStock0.651.4334.0%42%60
GLDSPDR Gold SharesETF · Gold0.170.2017.6%3%60
GOOGLAlphabet Inc. (Class A)Stock0.591.2332.4%35%60
HDViShares Core High Dividend ETFETF · U.S. stocks0.540.5214.8%29%60
IBITiShares Bitcoin Trust ETFETF · Crypto0.492.1953.5%24%33
IWMiShares Russell 2000 ETF (small companies)ETF · U.S. stocks0.841.1420.8%71%60
JPMJPMorgan Chase & Co.Stock0.661.0424.1%44%60
KOThe Coca-Cola CompanyStock0.260.2816.4%7%60
LINLinde plcStock0.530.6719.6%28%60
MAMastercard Inc.Stock0.550.7821.8%30%60
METAMeta Platforms, Inc.Stock0.451.2743.4%21%60
MPCMarathon Petroleum Corp.Stock0.250.5332.6%6%60
MSFTMicrosoft Corp.Stock0.621.0526.3%38%60
MUMicron Technology, Inc.Stock0.532.3668.6%28%60
NEENextEra Energy, Inc.Stock0.370.6125.8%13%60
NORWGlobal X MSCI Norway ETFETF · International stocks0.480.6821.9%23%60
NVDANVIDIA Corp.Stock0.682.2049.9%47%60
PCGPG&E Corp.Stock0.090.1728.7%1%60
PGThe Procter & Gamble CompanyStock0.290.3619.0%9%60
PMPhilip Morris International Inc.Stock0.230.3423.4%5%60
QQC.TOCI Invesco NASDAQ 100 Index ETFETF · U.S. stocks · CAD0.811.0019.2%65%60
QQQInvesco QQQ Trust (Nasdaq-100)ETF · U.S. stocks0.911.2321.0%83%60
SCHDSchwab U.S. Dividend Equity ETFETF · U.S. stocks0.660.6715.6%44%60
SPYSPDR S&P 500 ETF TrustETF · U.S. stocks1.001.0015.5%100%60
TLTiShares 20+ Year Treasury Bond ETFETF · Bonds0.530.5114.8%28%60
TSLATesla, Inc.Stock0.461.7258.4%21%60
UUPInvesco DB US Dollar Index Bullish FundETF · Currency−0.43−0.207.2%18%60
VVisa Inc.Stock0.600.8020.4%36%60
VDY.TOVanguard FTSE Canadian High Dividend Yield Index ETFETF · Canadian stocks · CAD0.610.5012.5%38%60
VFV.TOVanguard S&P 500 Index ETFETF · U.S. stocks · CAD0.920.7713.0%84%60
VIDY.TOVanguard FTSE Developed ex North America High Dividend Yield Index ETFETF · International stocks · CAD0.570.4211.5%33%60
VNQVanguard Real Estate ETFETF · Real estate0.770.9519.0%60%60
VXUSVanguard Total International Stock ETFETF · International stocks0.800.7915.2%64%60
VYMVanguard High Dividend Yield ETFETF · U.S. stocks0.800.7214.0%64%60
VYMIVanguard International High Dividend Yield ETFETF · International stocks0.680.6214.2%46%60
WMTWalmart Inc.Stock0.370.5321.9%14%60
XDG.TOiShares Core MSCI Global Quality Dividend Index ETFETF · Global stocks · CAD0.570.3710.0%32%60
XFN.TOiShares S&P/TSX Capped Financials Index ETFETF · Canadian stocks · CAD0.680.6715.2%47%60
XOMExxon Mobil Corp.Stock0.090.1627.4%1%60
XSP.TOiShares Core S&P 500 Index ETF (CAD-Hedged)ETF · U.S. stocks · CAD1.000.9915.4%99%60
ZRE.TOBMO Equal Weight REITs Index ETFETF · Real estate · CAD0.650.6916.5%42%60
Add your own tickers from a CSV file

Use a file of daily prices, in the same format as the Stock Market Seasons app: one row per ticker per trading day, with an adjusted close if you have one (it includes dividends). Many tickers can share one file. Your file stays on your computer: it is read by this page and saved only in this browser.

or drop a CSV file here

File template: a header row, then one row per ticker per trading day

ticker,date,close,adj_close,dividend,split
AAPL,2015-10-07,27.695,24.8035,0.0,0.0

Benchmark

How the tuned trend is built: each month, the pick's own intercept, plus the tuned beta × the market's return, plus its own monthly moves (the ones the market doesn't explain), scaled to fit the tuned volatility and correlation. On the real months, that gives exactly the tuned beta, correlation and volatility. The market is the S&P 500 (SPY) or the Nasdaq-100 (QQQ), with dividends, at month-end prices, so its months match the pick's. A pick with no own moves against the market, such as the S&P 500 against itself, gets seeded random ones. The original trend is built the same way with the measured values, so on an unedited market it is exactly what the pick did.

The chart appears when this step's script runs.

Portfolio A

Drag tickers here from the chart above.

Portfolio B

Drag tickers here from the chart above.

Tune
for
60%

Key idea

Beta tells you how hard a market storm should hit your portfolio, correlation how much of its ride the storm explains, and volatility how bumpy the ride is overall. Mixing holdings from different corners of the chart, such as stocks with bonds, gold or currencies, can pull a portfolio's beta and correlation down without giving up on growth.

How the numbers are calculated

β = Covariance(ticker, S&P 500) ÷ Variance(S&P 500)  ·  ρ = Covariance ÷ (σticker × σS&P 500)  ·  volatility = σmonthly × √12

Measures. Every ticker's monthly total return is its month-end adjusted close (dividends reinvested) divided by the previous month-end's, minus 1. The measures use the months a ticker shares with SPY in the window you set with the slider in Choose tickers and time period: any length from the last 2 years to every month since November 2015. The default, the last 5 years, is the usual “5Y monthly” measure. A ticker needs at least 24 shared months. R² is correlation squared: the share of its ups and downs that follow the S&P 500. Volatility is the usual, total measure of how much it swings. The bubble chart and the portfolio panes show the same four measures: each holding in a portfolio shows its own numbers, as on the bubble chart, and each portfolio's numbers, as on its star, come from its own monthly returns, rebalanced to your weights every month, over the months all of its holdings share.

Stress test. The test replays the market over your time period, the same months the betas are measured on, through each portfolio's beta, so you can also deepen a crash or draw your own market. Each month, its return is the Treasury-bill rate plus beta × (the market's return − the Treasury-bill rate). On Nasdaq-100 history, that beta is measured against QQQ, a Nasdaq-100 fund, instead of the S&P 500. Then 3,000 paths add the portfolio's own ups and downs: the part of its volatility the market doesn't explain, volatility × √(1 − ρ²). Both portfolios use the same 3,000 sets of random draws, so they are compared on equal terms. Each dashed line is a portfolio's middle path, and its lighter band holds the middle 80% of the paths at each month; in the tables, a portfolio's figures are the medians of its paths. These are modelled paths, built from market history and each portfolio's measured beta, not the portfolio's actual returns in past crashes. The part of the holdings' real returns this model doesn't explain (often called alpha) is not carried forward, and correlations can rise in a crisis, so real crashes can be worse.

A worked example

Take 20% each in NVIDIA (NVDA), JPMorgan Chase (JPM), Coca-Cola (KO), the bond fund BND and gold (GLD), measured over the last 5 years, November 2021 to October 2026: Portfolio A as the calculator first opens. Their betas are 2.20, 1.04, 0.28, 0.26 and 0.20, so the portfolio's beta is 0.2 × (2.20 + 1.04 + 0.28 + 0.26 + 0.20) = 0.80. Its correlation to the S&P 500 is 0.84 and its volatility 14.6%, against 15.5% for the S&P 500 and 22.9% for the holdings' weighted average. Mixing them cut the bumps by more than a third, because they don't all move together.

Where the data comes from

Data to October 2026. Ticker prices: daily adjusted closes from Yahoo Finance, October 2015 to October 2026, or from a fund's launch. Funds listed in Toronto (tickers ending in .TO) are in Canadian dollars, as a Canadian holder sees them, so their measures against the S&P 500 include the Canadian dollar's moves against the US dollar. S&P 500: Robert Shiller's monthly prices and dividends (dividends after June 2023 estimated; the latest month from the monthly average of Yahoo Finance's ^GSPC). Nasdaq-100: Nasdaq, Inc., via FRED, series NASDAQ100 (a 0.7% yearly dividend yield assumed). Treasury bills: the 3-month rate, FRED series TB3MS. Market history uses monthly average prices, which soften short, sharp falls: day by day, the S&P 500 fell about 34% from its February 2020 peak to its March low, but about 19% in monthly averages. In the 2025 “Liberation Day” tariff shock it fell about 19% from its February peak to its April low, but about 11% in monthly averages.

How do I calculate my portfolio's beta?

Multiply each holding's beta by its share of the portfolio and add the results. For example, half in a stock with a beta of 1.4 and half in a bond fund with a beta of 0.2 gives a portfolio beta of 0.8. Betas are usually measured from 3 to 5 years of monthly returns against the S&P 500. This calculator does it for two portfolios of up to five holdings, from their real monthly returns. Five is this calculator's limit, not a measure of diversification: what counts is how differently the holdings move.

What does a beta of 1.5 mean?

On average, the investment has moved about 1.5% for every 1% move in the S&P 500: about 15% down when the index fell 10%, and 15% up when it rose 10%. It is an average over past months, not a promise for any single month. The lower the correlation, the more single months scatter around that average.

What is a good correlation to the S&P 500 for diversification?

Lower correlation with the S&P 500 can lower a portfolio's market exposure, but the effect on your portfolio also depends on volatility, weights and how the holdings move together. Over the five years to October 2026, broad U.S. stock funds had a correlation of about 0.7 to 1.0 with the S&P 500, most single large stocks 0.2 to 0.7, and gold and currency funds between about −0.4 and +0.4. High-quality bonds were lower over the longer run, but rose to about 0.6 in those five years, as interest rates moved stocks and bonds together. Correlations change, and they tend to rise in a crisis.

Why do beta and correlation change with the period measured?

They describe the months they are measured over, and those months differ. Apple's correlation to the S&P 500 was 0.44 over the three years to October 2026, but 0.67 over five years; its beta was 0.75 and 1.07. That is why finance sites quote a period, such as "5Y monthly", and why this calculator's slider lets you measure over any length of time, from the last 2 years to every month since November 2015.

How can I stress test my portfolio against a market crash?

Replay past crashes on it. Measure your portfolio's beta, apply it to each month of the market's history, such as the 2020 COVID crash, the 2022 bear market and the 2025 “Liberation Day” tariff shock, and add a range for your holdings' own ups and downs. This calculator does it on S&P 500 and Nasdaq-100 history over the time period you choose, as far back as November 2015, for two portfolios at once, and lets you deepen a crash or draw your own market.

For education only, not investment advice. Beta, correlation and volatility are measured from past monthly returns (Yahoo Finance adjusted closes; the S&P 500 from Robert Shiller's data; the Nasdaq-100 and Treasury bills from FRED) and change with the period measured. The stress test is a model, not a forecast. Past behavior of any asset doesn't guarantee future results.

Glossary

Asset class
A broad type of investment, such as stocks, bonds, gold or cash, that tends to behave in its own way.
Benchmark
A standard you compare an investment against. For U.S. stocks it is usually the S&P 500.
Beta (β)
How far an investment moves, on average, when the benchmark moves 1%. β = correlation × (investment volatility ÷ benchmark volatility).
Bond
A loan to a government or company that pays interest. High-quality bonds have usually been steadier than stocks.
Correlation (ρ)
A number from −1 to +1 measuring how consistently two investments move in the same direction.
Diversification
Spreading money across many investments that don't all move together, so no single one can sink you.
Drawdown
A fall from a previous peak. The worst one over a period is the maximum drawdown.
Efficient frontier
The set of portfolios offering the highest expected return for each level of risk.
Market (systematic) risk
Risk that hits nearly all stocks at once, such as recessions. It can't be removed by adding more stocks.
Company-specific (idiosyncratic) risk
Risk unique to one company, such as a lawsuit. Diversifying across many companies removes most of it.
Median
The middle outcome: half did better, half did worse. Often a better picture of the “typical” result than the average.
R² (R-squared)
Correlation squared: the share of an investment's ups and downs that line up with the benchmark's.
Rebalancing
Periodically selling what has grown and buying what has shrunk, to return to your target mix.
Stress test
Replaying a bad market, past or made up, on a portfolio to see how far it could fall and how long it could take to recover.
S&P 500
A stock market index of about 500 of the largest U.S. companies, widely used to represent “the market”.
Volatility (σ)
How much an investment's returns swing around their average, usually given as a yearly percentage (the standard deviation).