How to Calculate Correlation of Investment Returns

How to Calculate Gross Sales
Written By
Dan Ketchum
Dan Ketchum
Jan 17, 2013
3 minute read

You've crossed all the T's and dotted all the I's in your beginning investment portfolio. You set aside a little money every month for mutual funds, you've maxed out your retirement account contributions, you've set up a Roth IRA and you have already begun to diversify.

Now that you have a solid portfolio, it's time to deepen your understanding not just of how everything works but how everything works together. Calculating the correlation of your investments' returns will help you do just that. In order to calculate the correlation, you will need the closing prices or non-stock asset values over the duration of time you intend to analyze.

Why it Helps

Essentially, correlation gauges the relationship or lack thereof between the returns of two different investments. It's measured by a range of -1.0 to +1.0, where the latter indicates a perfect correlation, and the former indicates a perfect negative correlation. In a perfect correlation, two investments will always change value in unison; in a perfect negative correlation, they'll always change value in opposite directions. Of course, perfect correlations of either type are virtually impossible, but the scale helps you get a read on relationships.

The utility of knowing correlation boils down to one word: diversification. The less correlated your investments are, the less chance of your entire portfolio suffering at the mercy of fickle market trends.

Preparing Your Data

Unless you're an aspiring mathematician, the most accessible way to input the formula for asset correlation is via a spreadsheet program, such as Microsoft Excel.

You'll first need to gather the daily closing prices or the value of non-stock assets rated over a regular period of time for the two assets you wish to explore. For stock, you can grab these from free sites, such as Morningstar or Google Finance. No matter what type of investment you have, the greater the amount of historic values you can gather, the more accurate your result will be.

Advertisement

Using Excel for Your Calculations

Make an Excel spreadsheet for each investment with one column for the closing date and another for the corresponding value, listed in descending order. In the cell to the right of the first value, type "=ln(" and then click on the value, which will appear in the open parenthesis. Enter "/" to divide that value and then click on the next most recent value. Click on the bottom right corner of that cell and drag down to the bottom of your document, which will automatically calculate the periodic daily returns for each row.

Now it's time for another spreadsheet. Once you've got as many periodic daily returns for each investment as possible, list them in separate columns for each asset. In an empty cell, type "=CORREL(" and then select one entire column and add a comma to the cell. Select the other column, add a ")" to close the parenthesis and hit "Enter." This should produce the correlation coefficient between the two investments, a figure ranging from -1.0 to 1.0.

Other Solutions to Consider

If you're not super into math or don't have Excel, worry not. Portfolio Visualizer offers a free online asset correlation calculator for stock, exchange-traded funds and mutual funds.

Just head over to their Asset Correlations calculator and enter your ticker symbols and the start and end dates of the period about which you're curious. From the drop-down menus, choose the correlation basis (from options including daily, monthly and annual returns) and the rolling correlation (from 20 to 120 trading days). Then, click the "View Correlation" button and you're off to the races – or the New York Stock Exchange.

Tips

The correlation coefficient is bounded by -1 and +1. If you get an answer outside of this range, you made a mistake.

Positive correlation coefficients indicate that, on average, returns move together, whereas negative coefficients indicate that more often than not, they move in opposite directions. A correlation coefficient close to zero indicates there is no statistical relationship between the two series.

In Excel, labels can be placed as “Date” in cell A1, “Stock 1” in cell B1, and “Stock 2” in cell C1. The years 2009 through 2012 can reside in cells A2, A3, A4 and A5 denoted as an array by A2:A5. The four returns for Stock 2 can reside in the array B2:B5 and the returns for Stock 2 can reside in the array C2:C5. Then in a blank nearby cell, enter the formula =CORREL(B2:B5,C2:C5). The result is -0.3043845.

Warnings

In practice, you should use at least 30 observations for reliable results.

Sponsored
Budgeting Money Logo

Budgeting Money from The Nest — practical guides on taxes, investing, saving and managing your household finances.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.