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.
| Show on chart | ||||||||
|---|---|---|---|---|---|---|---|---|
| AAPL | Apple Inc. | Stock | 0.67 | 1.07 | 24.7% | 45% | 60 | |
| AMZN | Amazon.com, Inc. | Stock | 0.68 | 1.49 | 34.0% | 46% | 60 | |
| AVGO | Broadcom Inc. | Stock | 0.55 | 1.49 | 42.0% | 30% | 60 | |
| BAC | Bank of America Corp. | Stock | 0.68 | 1.20 | 27.3% | 46% | 60 | |
| BND | Vanguard Total Bond Market ETF | ETF · Bonds | 0.61 | 0.26 | 6.5% | 38% | 60 | |
| BRK.B | Berkshire Hathaway Inc. (Class B) | Stock | 0.47 | 0.58 | 19.0% | 22% | 60 | |
| CAT | Caterpillar Inc. | Stock | 0.64 | 1.65 | 39.6% | 41% | 60 | |
| CEG | Constellation Energy Corp. | Stock | 0.38 | 1.12 | 45.9% | 14% | 57 | |
| CEW.TO | iShares Equal Weight Banc & Lifeco ETF | ETF · Canadian stocks · CAD | 0.62 | 0.63 | 15.6% | 39% | 60 | |
| COST | Costco Wholesale Corp. | Stock | 0.56 | 0.84 | 23.5% | 31% | 60 | |
| CVX | Chevron Corp. | Stock | 0.25 | 0.48 | 29.0% | 6% | 60 | |
| CYH.TO | iShares Global Monthly Dividend Index ETF (CAD-Hedged) | ETF · Global stocks · CAD | 0.63 | 0.52 | 12.8% | 39% | 60 | |
| DIS | The Walt Disney Company | Stock | 0.67 | 1.44 | 33.4% | 44% | 60 | |
| ENOR | iShares MSCI Norway ETF | ETF · International stocks | 0.49 | 0.70 | 22.0% | 24% | 60 | |
| ETHA | iShares Ethereum Trust ETF | ETF · Crypto | 0.42 | 2.66 | 75.4% | 18% | 27 | |
| FCID.TO | Fidelity International High Dividend ETF | ETF · International stocks · CAD | 0.50 | 0.37 | 11.4% | 25% | 60 | |
| FCIV.TO | Fidelity International Value ETF | ETF · International stocks · CAD | 0.54 | 0.46 | 13.3% | 29% | 60 | |
| FCUV.TO | Fidelity U.S. Value ETF | ETF · U.S. stocks · CAD | 0.76 | 0.68 | 13.8% | 58% | 60 | |
| FIE.TO | iShares Canadian Financial Monthly Income ETF | ETF · Canadian income · CAD | 0.71 | 0.59 | 12.8% | 50% | 60 | |
| FXE | Invesco CurrencyShares Euro Trust | ETF · Currency | 0.37 | 0.18 | 7.5% | 14% | 60 | |
| GE | GE Aerospace | Stock | 0.65 | 1.43 | 34.0% | 42% | 60 | |
| GLD | SPDR Gold Shares | ETF · Gold | 0.17 | 0.20 | 17.6% | 3% | 60 | |
| GOOGL | Alphabet Inc. (Class A) | Stock | 0.59 | 1.23 | 32.4% | 35% | 60 | |
| HDV | iShares Core High Dividend ETF | ETF · U.S. stocks | 0.54 | 0.52 | 14.8% | 29% | 60 | |
| IBIT | iShares Bitcoin Trust ETF | ETF · Crypto | 0.49 | 2.19 | 53.5% | 24% | 33 | |
| IWM | iShares Russell 2000 ETF (small companies) | ETF · U.S. stocks | 0.84 | 1.14 | 20.8% | 71% | 60 | |
| JPM | JPMorgan Chase & Co. | Stock | 0.66 | 1.04 | 24.1% | 44% | 60 | |
| KO | The Coca-Cola Company | Stock | 0.26 | 0.28 | 16.4% | 7% | 60 | |
| LIN | Linde plc | Stock | 0.53 | 0.67 | 19.6% | 28% | 60 | |
| MA | Mastercard Inc. | Stock | 0.55 | 0.78 | 21.8% | 30% | 60 | |
| META | Meta Platforms, Inc. | Stock | 0.45 | 1.27 | 43.4% | 21% | 60 | |
| MPC | Marathon Petroleum Corp. | Stock | 0.25 | 0.53 | 32.6% | 6% | 60 | |
| MSFT | Microsoft Corp. | Stock | 0.62 | 1.05 | 26.3% | 38% | 60 | |
| MU | Micron Technology, Inc. | Stock | 0.53 | 2.36 | 68.6% | 28% | 60 | |
| NEE | NextEra Energy, Inc. | Stock | 0.37 | 0.61 | 25.8% | 13% | 60 | |
| NORW | Global X MSCI Norway ETF | ETF · International stocks | 0.48 | 0.68 | 21.9% | 23% | 60 | |
| NVDA | NVIDIA Corp. | Stock | 0.68 | 2.20 | 49.9% | 47% | 60 | |
| PCG | PG&E Corp. | Stock | 0.09 | 0.17 | 28.7% | 1% | 60 | |
| PG | The Procter & Gamble Company | Stock | 0.29 | 0.36 | 19.0% | 9% | 60 | |
| PM | Philip Morris International Inc. | Stock | 0.23 | 0.34 | 23.4% | 5% | 60 | |
| QQC.TO | CI Invesco NASDAQ 100 Index ETF | ETF · U.S. stocks · CAD | 0.81 | 1.00 | 19.2% | 65% | 60 | |
| QQQ | Invesco QQQ Trust (Nasdaq-100) | ETF · U.S. stocks | 0.91 | 1.23 | 21.0% | 83% | 60 | |
| SCHD | Schwab U.S. Dividend Equity ETF | ETF · U.S. stocks | 0.66 | 0.67 | 15.6% | 44% | 60 | |
| SPY | SPDR S&P 500 ETF Trust | ETF · U.S. stocks | 1.00 | 1.00 | 15.5% | 100% | 60 | |
| TLT | iShares 20+ Year Treasury Bond ETF | ETF · Bonds | 0.53 | 0.51 | 14.8% | 28% | 60 | |
| TSLA | Tesla, Inc. | Stock | 0.46 | 1.72 | 58.4% | 21% | 60 | |
| UUP | Invesco DB US Dollar Index Bullish Fund | ETF · Currency | −0.43 | −0.20 | 7.2% | 18% | 60 | |
| V | Visa Inc. | Stock | 0.60 | 0.80 | 20.4% | 36% | 60 | |
| VDY.TO | Vanguard FTSE Canadian High Dividend Yield Index ETF | ETF · Canadian stocks · CAD | 0.61 | 0.50 | 12.5% | 38% | 60 | |
| VFV.TO | Vanguard S&P 500 Index ETF | ETF · U.S. stocks · CAD | 0.92 | 0.77 | 13.0% | 84% | 60 | |
| VIDY.TO | Vanguard FTSE Developed ex North America High Dividend Yield Index ETF | ETF · International stocks · CAD | 0.57 | 0.42 | 11.5% | 33% | 60 | |
| VNQ | Vanguard Real Estate ETF | ETF · Real estate | 0.77 | 0.95 | 19.0% | 60% | 60 | |
| VXUS | Vanguard Total International Stock ETF | ETF · International stocks | 0.80 | 0.79 | 15.2% | 64% | 60 | |
| VYM | Vanguard High Dividend Yield ETF | ETF · U.S. stocks | 0.80 | 0.72 | 14.0% | 64% | 60 | |
| VYMI | Vanguard International High Dividend Yield ETF | ETF · International stocks | 0.68 | 0.62 | 14.2% | 46% | 60 | |
| WMT | Walmart Inc. | Stock | 0.37 | 0.53 | 21.9% | 14% | 60 | |
| XDG.TO | iShares Core MSCI Global Quality Dividend Index ETF | ETF · Global stocks · CAD | 0.57 | 0.37 | 10.0% | 32% | 60 | |
| XFN.TO | iShares S&P/TSX Capped Financials Index ETF | ETF · Canadian stocks · CAD | 0.68 | 0.67 | 15.2% | 47% | 60 | |
| XOM | Exxon Mobil Corp. | Stock | 0.09 | 0.16 | 27.4% | 1% | 60 | |
| XSP.TO | iShares Core S&P 500 Index ETF (CAD-Hedged) | ETF · U.S. stocks · CAD | 1.00 | 0.99 | 15.4% | 99% | 60 | |
| ZRE.TO | BMO Equal Weight REITs Index ETF | ETF · Real estate · CAD | 0.65 | 0.69 | 16.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.
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
How to use the trend charts
Try it: tune beta, correlation and volatility, and compare the trends.
- Pick an index (the S&P 500 or the Nasdaq-100), a ticker or one of your portfolios, and the benchmark to measure it against: the S&P 500 or the Nasdaq-100. Its original trend is what it did over the window set with the slider in Choose tickers and time period.
- Tune the measures: move a slider to tune one measure at a time, and compare the tuned trend with the original. Beta = correlation × volatility ÷ the market's volatility, so the three move together. Moving beta keeps the pick's own moves (the ones the market doesn't explain) the same size and changes its volatility and correlation; moving correlation keeps its volatility and changes beta; moving volatility keeps its correlation and changes beta.
- Drag the market: as in the stress test, drag any month of the market's line up or down to deepen or soften a crash; the months around it follow, and both trends follow it. With the keyboard, Tab to the chart, pick a month with the left and right arrow keys and move it with up and down. Undo trend edits, Reset trend edits and Ctrl+Z take it back.
Beta: how far it moves with the market
Beta is the slope of a ticker's monthly returns against the S&P 500's. A beta of 1 moves with the market, above 1 amplifies it, below 1 dampens it, and below 0 tends to move the other way. Over the five years to October 2026, NVIDIA's beta was 2.20, Coca-Cola's 0.28 and the U.S. dollar fund UUP's −0.20.
Correlation: how reliably it moves with the market
Correlation runs from −1 to +1. SPY, an S&P 500 fund, is 1.00 by definition. Over the same five years Microsoft was 0.62, gold (GLD) 0.17 and UUP −0.43. The lower a holding's correlation, the more it can offset the rest of a stock portfolio.
R² and volatility
R², correlation squared, is the share of a ticker's ups and downs that follow the market. Volatility is the yearly size of its swings: 6.5% for the bond fund BND, 15.5% for SPY and 49.9% for NVIDIA. The part of the volatility the market doesn't explain is the ticker's own risk, which owning many different holdings can cancel out.
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.
How to use the bubble chart
Build two portfolios of up to 5 tickers each. Top right: moves a lot, and with the market. Bottom left: moves little, and on its own.
- Click a bubble: add it to Portfolio A · Shift+click: add it to Portfolio B
- Right-click: take it out of Portfolio A · Shift+right-click: take it out of Portfolio B
- Or drag a bubble into either portfolio's pane below. With the keyboard: Tab to a bubble, Enter (Shift+Enter) adds it, Delete (Shift+Delete) takes it out.
- Unticking a ticker in Choose tickers and time period takes it off the chart and out of both portfolios.
To zoom in on a crowded spot, hold Ctrl (⌘ on a Mac) and scroll over the chart, or use + and −; drag the empty background to move around.
How to use the two portfolios
- Add holdings from the bubble chart above: click a bubble for Portfolio A, Shift+click for Portfolio B, or drag it into a pane. Up to 5 each.
- Reorder: drag a holding by its handle, or focus the handle and press the up and down arrow keys.
- Weights add up to 100% and are rebalanced monthly. A slider moves in 1% steps and changes only the holdings below it, in proportion; the last holding takes what the others leave.
- Take one out with its ✕, by right-clicking its bubble (Shift+right-click for B), or by unticking it in Choose tickers and time period. Its weight is shared among the rest.
Each pane shows its holdings' own numbers (as on their bubbles), the portfolio's numbers (as on its star) and a verdict; “Compare” below sums up A against B.
Portfolio A
Portfolio B
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
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.