ROI Calculator in Excel (Simple ROI, Annualised ROI, Payback, Free)

An ROI calculator in Excel divides the net gain of an investment by what it cost, so you can see what each dollar earned. The free ROI calculator below does that for several investments at once, then adds the annualised ROI, the payback period in years and a check against your hurdle rate. In the sample, 8 small business investments cost 173,000 in total and returned 240,050, a portfolio ROI of 38.8%, but only 3 of them beat a 12% yearly hurdle.

Free download

ROI Calculator (.xlsx, also opens in Google Sheets)

Working formulas, sample data and a How to use sheet. Opens in Excel, or import it into Google Sheets.

Download free (.xlsx)

The ROI formula in Excel

Return on investment is net gain divided by cost. Net gain is what you got back minus what you put in. In Excel, with the cost in B16 and the final value in C16, the whole thing is one line:

=(C16-B16)/B16

Format the cell as a percentage. A delivery van that cost 42,000 and is now worth 61,500 including the profit it brought in has a net gain of 19,500 and an ROI of 46.4%. That is the number most people stop at, and it is where most ROI comparisons go wrong.

Why simple ROI is not enough

Simple ROI ignores time. The solar panels in the sample show a 30.0% ROI, which sounds good next to the 20.5% of the second retail kiosk. But the panels took three years to earn it and the kiosk took one. Spread over the years held, the panels earn 9.1% a year and the kiosk 20.5% a year. The order flips once time is in the formula.

That is why this calculator shows both numbers side by side, plus how long each investment takes to pay back its cost. You need all three to rank investments fairly.

What is inside the free ROI calculator

The workbook has a How to use sheet and one ROI Calculator sheet. It has no macros and opens in Google Sheets. Three yellow cells at the top hold the business name, the hurdle rate and the longest payback you accept. An All investments box and four cards show the total invested, the net gain, the portfolio ROI and how many investments meet the hurdle. Below that is a table with room for 15 investments.

The sample is a made up wholesaler, Harbor Supply Co., with eight investments made between 2024 and 2026: a van, a website redesign, solar panels, a trade show booth, a packaging machine, staff training, inventory software and a second retail kiosk. The hurdle rate is 12% a year and the longest payback is 3 years.

ROI Calculator (.xlsx, also opens in Google Sheets) in Excel with sample data
Snapshot 1: the ROI Calculator sheet, with the settings, the All investments box, the cards and the investment table.

Who this calculator is for

  • Small business owners choosing between a few projects with the same budget.
  • Finance and operations staff who need to show the return on past spending.
  • Students learning how ROI, annualised ROI and payback relate to each other.

This is educational content, not investment advice. The calculator compares numbers you type in. It does not know your risks or your taxes.

How to build the ROI calculator step by step

The table starts in row 16. Column A is the investment, B the cost, C the final value, D the start date, E the end date and F the yearly cash inflow. Those are typed. Columns G to M are formulas. The hurdle rate is in B6 and the longest payback in B7.

Step 1: Net gain and ROI

Net gain in G16 is the final value minus the cost, and ROI in H16 divides it by the cost. The IF at the front keeps empty rows blank:

=IF(A16="","",C16-B16)

=IF(A16="","",G16/B16)

The final value should include everything the investment gave back: resale value, extra profit and savings. If you only count the resale value of the van, its ROI turns negative even though it earned its keep.

Step 2: Years held

In I16, subtract the start date from the end date and divide by 365:

=IF(A16="","",(E16-D16)/365)

Excel stores dates as day numbers, so the subtraction gives days. The van was held from 1 January 2025 to 1 January 2027, which is 2.0 years. YEARFRAC gives almost the same answer, but days divided by 365 is easier to check by hand.

Step 3: Annualised ROI

Annualised ROI is the yearly rate that turns the cost into the final value over the years held. In J16:

=IF(A16="","",(C16/B16)^(1/I16)-1)

C16/B16 is the growth multiple, and raising it to the power of 1 over the years gives the yearly multiple. For the van that is 21.0% a year. The packaging machine returned 45.1% in total, a little less than the van, but over three years, so it annualises to 13.2%. This is the same idea as a growth rate, and it is close to what the IRR function in Excel gives when there is one cash flow in and one out. For investments with cash coming back every year, IRR is the better tool.

Investment table of the free ROI calculator with net gain, ROI, annualised ROI, payback and flags
Snapshot 2: the investment table, with simple ROI next to annualised ROI, the payback years, the flag and the rank.

Step 4: Payback period in years

Payback answers a different question: how long until the cash coming in covers the cost? In K16:

=IF(A16="","",IF(F16<=0,"n/a",B16/F16))

The van brings in 14,000 a year, so it pays back in 3.0 years. The trade show booth brought in no yearly cash, so its payback shows n/a instead of a divide by zero error. Simple payback ignores the time value of money. For a version that discounts each year, see the NPV formula in Excel.

Step 5: The flag against your hurdle rate

A hurdle rate is the lowest yearly return you accept, often your cost of borrowing plus a margin for risk. Column L tests each investment in order: a loss first, then the annualised ROI against the hurdle, then the payback against your limit. In L16:

=IF(A16="","",IF(G16<0,"Loss",IF(J16<$B$6,"Below hurdle",IF(AND(ISNUMBER(K16),K16>$B$7),"Slow payback","Meets hurdle"))))

In the sample the trade show booth is a loss, the solar panels are below the hurdle, and the packaging machine, the inventory software and the kiosk clear the hurdle but take more than 3 years to pay back. The van, the website redesign and the staff training meet every test. Conditional formatting colors the flags red, amber or green.

Step 6: Rank and the summary box

Column M ranks every investment by annualised ROI, so rank 1 is the best yearly return:

=IF(A16="","",RANK(J16,$J$16:$J$30))

The summary box adds up the cost and the final value with SUM and divides the net gain by the total cost for the portfolio ROI. The best investment by name uses INDEX and MATCH on the largest annualised ROI:

=INDEX(A16:A30,MATCH(MAX(J16:J30),J16:J30,0))

Here it returns Website redesign, at 67.1% a year. A check cell confirms that the total returned minus the total invested equals the net gain column.

How to use sheet in the free ROI calculator
Snapshot 3: the How to use sheet included in the download.

When to move beyond an ROI calculator

ROI and payback are quick filters. They are good for a shortlist and for explaining a decision in one line. For a large investment with cash flows that change from year to year, build a cash flow model and value it properly. The DCF model in Excel walks through that step by step.

Common mistakes

  • Comparing simple ROI across different time spans. A 30% return over three years is not better than 20% in one year. Use the annualised column.
  • Leaving out part of the return. Count resale value, extra profit and cost savings, or good investments look like losses.
  • Leaving out part of the cost. Installation, training and the time your staff spent are costs too.
  • Typing the ROI as a whole number. Keep the cell as a percentage. 0.12 is 12%, and typing 12 makes the hurdle 1,200%.
  • Reading payback as profit. An investment can pay back fast and then earn very little. Look at payback and ROI together.
Marketing ROI Dashboard in Excel

Want more than the free file?

Marketing ROI Dashboard in Excel

Track spend, revenue and ROI for every campaign and channel in Excel, with a ready dashboard of ROI by month, channel and campaign.

Get the full version

Frequently asked questions

What is the formula for ROI in Excel?

ROI is net gain divided by cost. With the cost in B16 and the final value in C16, type =(C16-B16)/B16 and format the cell as a percentage.

How do I calculate annualised ROI in Excel?

Divide the final value by the cost, raise it to the power of 1 over the years held and subtract 1: =(C16/B16)^(1/I16)-1. Years held is (end date minus start date) divided by 365.

How do I calculate the payback period in Excel?

Divide the cost by the yearly cash the investment brings in, for example =B16/F16. Wrap it in IF(F16<=0,"n/a",B16/F16) so a zero inflow does not give a divide by zero error.

What is a good ROI?

It depends on the risk and the time. Compare the annualised ROI with a hurdle rate, such as your cost of borrowing plus a margin. The sample uses 12% a year.

Does this ROI calculator work in Google Sheets?

Yes. Upload the file to Google Drive and open it with Google Sheets. The ROI, power, RANK, INDEX and MATCH formulas and the conditional formatting all work there.

Free download

ROI Calculator (.xlsx, also opens in Google Sheets)

Working formulas, sample data and a How to use sheet. Opens in Excel, or import it into Google Sheets.

Download free (.xlsx)
Monthly Budget Planner Template in Excel

Want the finished version?

Monthly Budget Planner Template in Excel

Plan income and spending and compare budget against actual every month.

View the pro template

Written by

Priyendra Kumar (PK)

Excel, Google Sheets and Power BI trainer

PK is the founder of PK: An Excel Expert and NextGenTemplates.com and a corporate trainer in Excel, VBA and Power BI. Since 2020 he and his team have built Excel and Google Sheets tutorials and templates for business users.

About The Margin Sheet · PK: An Excel Expert

Education only. Not financial, tax or investment advice.

The Margin Sheet

Finance in Excel, Google Sheets and Power BI, explained step by step, with a free template in every tutorial.