How to Calculate ROI: Formula, Examples and Rental Property ROI

Learn how to calculate return on investment step by step, annualize it, and measure ROI for rental property, house flips and marketing, with examples and Excel formulas.
Table of Contents 15 sections
- The ROI formula
- How to calculate ROI in 4 steps
- How to calculate annualized ROI
- How to calculate ROI on a rental property
- How to calculate ROI in real estate flips
- How to calculate marketing ROI
- How to calculate ROI for a business project or equipment
- How to calculate after-tax and real ROI
- How to calculate ROI in Excel
- ROI vs ROAS, IRR and payback
- How to calculate ROI on a stock portfolio with deposits
- Common mistakes
- Calculate ROI instantly
- How to use this guide
- Frequently asked questions
Return on investment, or ROI, is the most widely used way to judge whether an investment paid off. It works for almost anything: stocks, a small business, a marketing campaign, new equipment, a home renovation or a rental property. This guide shows you how to calculate ROI step by step, how to annualize it so you can compare investments held for different lengths of time, and how to calculate ROI for rental property, real estate and marketing, with examples and Excel formulas.
The ROI formula
The top of the fraction is your net profit. Dividing by the cost turns it into a percentage of what you put in.
How to calculate ROI in 4 steps
- Add up the total cost. Include the purchase price plus commissions, fees, setup costs and anything else you paid to make the investment.
- Find the total gain. This is the sale price or current value plus any income received, such as dividends, interest or rent.
- Subtract cost from gain to get your net profit (or loss).
- Divide by the cost and multiply by 100.
Example: stock investment
You buy 100 shares at $50 ($5,000) and pay a $10 commission. Two years later you sell at $62 ($6,200), pay another $10 commission and have received $150 in dividends.
- Total cost = 5,000 + 10 = $5,010
- Total gain = 6,200 - 10 + 150 = $6,340
- Net profit = 6,340 - 5,010 = $1,330
- ROI = 1,330 / 5,010 = 26.55%
Example: a loss
You spend $2,000 on equipment for a side business and sell the products for $1,700 in total. ROI = (1,700 - 2,000) / 2,000 = -15%.
How to calculate annualized ROI
Plain ROI does not tell you how long the money was tied up. To compare a 26.55% return over 2 years with, say, 40% over 4 years, convert both to an annual rate:
- 26.55% over 2 years: 1.26551/2 - 1 = 12.49% per year
- 40% over 4 years: 1.401/4 - 1 = 8.78% per year
The smaller total return is actually the better investment. For periods shown in months, use n = months / 12. For a 6-month return of 5%, the annualized figure is 1.052 - 1 = 10.25%, but be careful annualizing very short periods, because one lucky month does not make a 50% annual return.
How to calculate ROI on a rental property
There are three common ways to measure rental ROI. Each answers a different question.
1. Cash-on-cash return
This measures the yearly return on the actual cash you put in. Example: you buy a $250,000 property with a $50,000 down payment, $7,500 of closing costs and $5,000 of repairs, so your cash invested is $62,500. Rent is $2,100 a month. Annual expenses are $6,600 for taxes and insurance, $2,520 for maintenance and vacancy reserves, and $2,520 for property management, a total of $11,640. Mortgage payments total $14,400 a year.
- Rental income = 2,100 × 12 = $25,200
- Cash flow = 25,200 - 11,640 - 14,400 = -$840
The property loses $840 a year, a cash-on-cash return of -1.34%. That is a red flag: the numbers only work if you expect strong appreciation, can raise rent or can cut costs. If rent were $2,400, cash flow would be $2,760 and cash-on-cash return 4.42%.
2. Cap rate
NOI is rental income minus operating expenses, before mortgage payments. It describes the property itself, regardless of how it is financed. In the example, NOI = 25,200 - 11,640 = $13,560, so the cap rate is 13,560 / 250,000 = 5.42%.
3. Total ROI when you sell
Example: after 5 years you sell for $300,000, pay $18,000 in selling costs and owe $185,000 on the mortgage. You also collected $8,000 of total cash flow. Total ROI = (300,000 - 18,000 - 185,000 - 62,500 + 8,000) / 62,500 = 42,500 / 62,500 = 68%, or 1.681/5 - 1 = 10.93% per year.
How to calculate ROI in real estate flips
For a fix-and-flip, ROI = (Sale price - Purchase price - Renovation costs - Holding costs - Selling costs) / Total cash invested. If you buy for $180,000, spend $40,000 on renovations, $8,000 on holding costs and $20,000 on selling costs, and sell for $275,000, the profit is $27,000. Paying all cash ($228,000), ROI is 11.8%. If you financed most of it and put in $60,000 of cash, the ROI on your cash is 45% (as long as loan interest is counted in the holding costs), which shows how leverage magnifies returns, and losses.
How to calculate marketing ROI
Example: an email campaign costs $1,200 in software and staff time and brings in $9,600 in sales. ROI = (9,600 - 1,200) / 1,200 = 700%. For a more realistic number, use gross profit: with a 35% margin, the campaign earned $3,360 of gross profit, and ROI = (3,360 - 1,200) / 1,200 = 180%. Be honest about attribution: only count revenue the campaign actually caused, not sales that would have happened anyway.
For SEO and content, the return arrives over months or years, so calculate ROI over a long enough period, for example 12 to 24 months, and include writers, tools and agency fees in the cost.
How to calculate ROI for a business project or equipment
For a project that produces savings or extra profit each year, add up the net benefits over its useful life and compare them with the cost.
Example: a $40,000 machine saves $12,000 a year in labor for 5 years and can then be sold for $5,000. Total benefit = 12,000 × 5 + 5,000 = $65,000. ROI = (65,000 - 40,000) / 40,000 = 62.5%. The payback period is 40,000 / 12,000 = 3.3 years. Because the savings arrive over time, a finance team would also calculate the IRR, which here is about 18% a year, and compare it with the company's cost of capital.
How to calculate after-tax and real ROI
Taxes and inflation both shrink your true return. For an after-tax ROI, subtract the tax due from the gain. On the stock example above, a $1,330 profit taxed at 15% leaves $1,130.50, an after-tax ROI of 22.56%. For a real (inflation-adjusted) annual return, use (1 + nominal annual return) / (1 + inflation) - 1. A 12.49% annual return with 3% inflation is a real return of 1.1249 / 1.03 - 1 = 9.21%.
How to calculate ROI in Excel
- ROI: =(B2-A2)/A2, with cost in A2 and final value in B2, formatted as a percentage.
- Annualized ROI: =(B2/A2)^(1/C2)-1, with years in C2.
- Uneven cash flows: =IRR(range) for yearly flows or =XIRR(values, dates) for exact dates, with the initial investment as a negative number.
ROI vs ROAS, IRR and payback
- ROAS = revenue / ad spend. A ROAS of 4 means $4 of revenue per $1 spent, which is a 300% ROI on revenue before other costs.
- IRR accounts for when each dollar arrives, so it is better for rentals and businesses with ongoing cash flows.
- Payback period = cost / annual cash flow: how many years until you get your money back.
How to calculate ROI on a stock portfolio with deposits
If you add or withdraw money during the year, the simple ROI formula overstates or understates your return. A quick fix is to divide your gain by the average amount invested. Example: you start the year with $20,000, add $10,000 in July and end with $33,000. The gain is 33,000 - 20,000 - 10,000 = $3,000. The average invested is about 20,000 + 10,000 × 0.5 = $25,000, so the return is about 3,000 / 25,000 = 12%, not 3,000 / 30,000 = 10%. Brokerages report a time-weighted or money-weighted return that does this precisely.
Common mistakes
- Leaving out costs such as fees, taxes, repairs, closing costs or your own time.
- Comparing ROIs over different time periods without annualizing.
- Ignoring risk. A higher ROI often means higher risk.
- Counting unrealized gains as cash. A paper gain can disappear before you sell.
- Ignoring inflation on long investments.
Calculate ROI instantly
The free ROI calculator works out ROI, annualized ROI and rental property returns in seconds. To see how a fixed rate compares, use the interest calculator or the compound interest calculator, and for percentage changes, see how to calculate percentage increase.
How to use this guide
Work through the steps in order with your own numbers, writing each result down as you go, then check your answer against the matching calculator on this site. If your hand calculation and the calculator disagree, the usual culprits are unit conversions, rounding, and a percentage typed as a whole number instead of a decimal. The examples are illustrations, not recommendations, and your situation may call for different assumptions. For important financial or health decisions, confirm your plan with a licensed professional who knows your circumstances. This article is reviewed periodically and was last updated in November 2026.
Frequently asked questions
How do you calculate ROI?
Subtract the total cost from the total gain, divide by the total cost and multiply by 100.
How do I calculate ROI on a rental property?
Divide annual cash flow (rent minus operating expenses and mortgage payments) by the cash you invested for cash-on-cash return, or divide net operating income by the price for cap rate.
How do I calculate annualized ROI?
Use (1 + ROI)^(1 / years) - 1. A 40% return over 4 years is 8.78% a year.
How do I calculate marketing ROI?
Subtract the campaign cost from the revenue or gross profit it generated and divide by the campaign cost.
How do I calculate ROI in Excel?
Use =(final value - cost) / cost, and =(final / cost)^(1/years) - 1 for annualized ROI.
What is a good ROI percentage?
It depends on the risk and time. Many investors compare with the stock market's long-run average of about 10% a year before inflation.
This ROI calculator provides estimates for educational purposes only and is not investment, tax or financial advice. Past returns do not guarantee future results, and real investments carry risk, taxes, fees and costs that may not be captured here. Consult a qualified professional before making investment decisions.

About the author
Sawera Shahid is the founder and lead writer of Calculators360. She builds the site's free online calculators and writes clear, step-by-step guides on finance, math and health, with every formula explained and worked examples you can check by hand.



