Bufetico Join the waitlist

ROI calculator

Work out what an investment really made you: the total and the yearly rate, after costs, tax and inflation. It also handles money added on different dates, and shows the S&P 500 over the same months.

Want these tools on your phone? They’re coming to the Bufetico app. Join the waitlist »

bufetico.com/tools/roi-calculator ·

An educational tool, not investment or tax advice. It’s free, with no sign-up and no ads. The result comes from the numbers you put in, and it shows US price data and S&P 500 history next to it.

Your numbers

Try an example:
$

What you paid for it, before costs.

$

Fees, commissions, closing costs or taxes you paid to buy.

$

What you sold it for, or what it’s worth today if you still own it.

$

Fees and commissions to sell. Put 0 if you still own it.

$

Dividends, rent or interest you received and kept.

$

Upkeep, account fees, property tax and the like.

When you put the money in.

When you sold it, or today’s date if you still own it.

Tax and a return to compare with
%

Your tax rate on the gain. Put 0 if you don’t know it yet.

%

The page tells you what you’d have needed to sell for to make it.

%

The calculator uses it when it can’t use the official CPI: another currency, no dates, or dates outside the data.

Your return on investment

82.67% total ROI

7.47% a year

You put in $10,100 and got back $18,450, so you made $8,350.

That took 8.37 years (3,056 days), which works out to 7.47% a year. You ended with 1.83 times what you put in.

After 15% tax on the profit, you keep $7,098. That’s 70.27% total, or 6.57% a year.

US prices rose 33.7% from April 2018 to August 2026, going by the official CPI. After tax and inflation, that’s 27.35% in today’s money, or 2.93% a year.

From April 2018 to August 2026, the S&P 500 returned 230.75% with dividends put back in, which is 15.44% a year, or 13.66% a year from the price alone. $10,100 in the index would have ended at $33,406. That’s the return of an index, not of any person or fund.

Before tax, your yearly rate was 7.97 percentage points below the index’s.

To break even after costs, you’d have needed to sell for $9,050. To make 7% a year over the same time, you’d have needed to sell for $16,740.

A high return on one investment says little about the next one. Over the years, the difference comes from a method you understand and the stomach to stick with it when a year goes badly. How to judge a business.

S&P 500 data: Robert J. Shiller, Yale, monthly averages with dividends, through September 2026. Inflation: US CPI-U from the BLS. Yearly S&P 500 returns since 1928: Aswath Damodaran, NYU. S&P 500 is a registered trademark of Standard & Poor’s Financial Services LLC, and the index is a product of S&P Dow Jones Indices LLC. Bufetico isn’t affiliated with them or endorsed by them.

Where the money went

  • You put in$10,100
  • Price change$7,400
  • Income$1,200
  • All costs-$250
  • Tax-$1,253
  • You keep$17,198

Per year, side by side

  • Your ROI7.47%
  • After tax6.57%
  • After inflation2.93%
  • S&P 50015.44%
Why calculators show different numbers
Total ROI, no time82.67%
Per year, compounded, 365.25-day year (this one)7.47%
Per year, compounded, 365-day year (like Excel’s XIRR)7.46%
Per year, simple: total ROI divided by the years9.88%
Total ROI without the income70.79%
Total ROI without any costs86%
Total ROI after tax70.27%

The simple version skips compounding, so it overstates long stretches. Many calculators also leave out the income or the costs.

Show the math

Money in = 10000 + 100 = 10100

Money back = 17400 - 150 + 1200 - 0 = 18450

ROI = (18450 - 10100) / 10100 = 82.67%

Years = 3056 days / 365.25 = 8.3669

ROI per year = (1 + 0.826733)^(1 / 8.3669) - 1 = 7.47%

In Excel or Google Sheets: =(18450/10100)^(1/8.3669)-1

After tax = (8350 - 1252.5) / 10100 = 70.27%

After inflation = (1 + 0.702723) / 1.337 - 1 = 27.35%

How this calculator works

ROI, or return on investment, is the profit divided by what you put in. Put in $10,000, get back $12,000, and the profit is $2,000, an ROI of 20%. It works for anything you put money into: a stock, a house, a small business, a course or an ad campaign.

The boxes start with a stock bought for $10,000 on April 2, 2018, with $100 of costs to buy. It was sold for $17,400 on August 14, 2026, with $150 of costs to sell, and it paid $1,200 in dividends along the way. You put in $10,100 and got back $18,450, an ROI of 82.67%. Over those 8.37 years, that’s 7.47% a year. After 15% tax on the profit, it’s 6.57% a year, and after tax and inflation, 2.93%.

There are three tabs. “One investment” is for money that goes in once and comes out once. “Money in and out” is for money you added or took out on different dates. “Compare” puts up to four investments next to each other.

Total ROI or ROI per year?

An ROI on its own doesn’t say how long it took. 50% in 5 years looks better than 20% in 2 years, but per year the 20% does better: 9.54% a year against 8.45%. That’s why the calculator shows both, and to compare two investments, use the yearly rate.

The yearly rate is compounded: (1 + ROI)^(1 / years) - 1. It’s the formula the SEC has funds use for their average yearly return, P(1 + T)^n = ERV, where P is the money put in, T the yearly return, n the years and ERV the value at the end. The costs to buy count as part of the money put in, and the costs to sell come off the value at the end. Some calculators divide the ROI by the years instead. That’s simpler, but it overstates long stretches: with the default numbers, 82.67% over 8.37 years would come out at 9.88% a year. Compounded, it’s 7.47%.

With dates, the calculator counts the days and divides by 365.25, the average length of a year once leap years are counted. Excel’s XIRR divides by 365. The difference is small, and the table “Why calculators show different numbers” has both.

Costs, income and tax

Many ROI calculators look only at the price. Fees to buy and sell, the dividends or the rent you collected, the upkeep you paid and the tax on the profit can change the answer a lot. With the default numbers, the ROI without any costs is 86%, against 82.67% with them, and the tax takes the yearly rate from 7.47% to 6.57%.

Income counts in full, as if you received it at the end. If the rent or the dividends came in over many years, the “Money in and out” tab counts when each payment arrived, and that gives a fairer yearly rate.

When you added money more than once

Say you put in $5,000, then $3,000 a year later, then more after that. Dividing the profit by everything you put in gives an ROI, but not a yearly rate, because each deposit was invested for a different length of time.

The “Money in and out” tab solves it the standard way. It finds the yearly rate at which every deposit, every withdrawal and the final value balance out, each one counted for the days it was invested. That’s the money-weighted return, and it gives the same answer as Excel’s XIRR. With Microsoft’s own example for XIRR, it gives 37.34%, like Excel. With the default rows, the simple ROI is 60.71% and the yearly return is 9.19%.

It also shows the gain on the money you had invested on average, which is the Modified Dietz method, and the money multiple. When money goes in and out several times, more than one yearly rate can fit. If that happens, the calculator lists every one of them and tells you which one Excel would most likely show.

After inflation

Dollars from 2018 and dollars from 2026 don’t buy the same things. When the amounts are in US dollars and the dates fall inside the data, the calculator uses the official consumer price index from the Bureau of Labor Statistics between your two months. With the default dates, US prices rose 33.7%, so a 70.27% gain after tax is 27.35% in today’s money, or 2.93% a year. For other currencies, or dates outside the data, it uses the yearly rate you type.

How does your ROI compare?

There’s no single answer to what a good ROI is, but there is a yardstick: what a plain index did over the same months. With dates, the calculator shows the S&P 500 from your start month to your end month, with dividends put back in and from the price alone. That’s the return of an index, not of any person or fund, and in this comparison the index pays no costs and no tax.

Without dates, it takes every stretch of the same number of years, rounded to whole years, since 1928 and shows the worst, the middle and the best, and in how many of them the index did better than your yearly rate. From 1928 to 2025, the S&P 500 grew 10.02% a year, compounded. The simple average of the yearly returns was 11.86%, higher than what money really grew at, because returns swing.

S&P 500 is a registered trademark of Standard & Poor’s Financial Services LLC, and the index is a product of S&P Dow Jones Indices LLC. Bufetico isn’t affiliated with them or endorsed by them.

Under a year

A 5.3% gain in 21 days works out to about 145% a year, which says very little. A yearly rate assumes the same thing happens again and again for a whole year. The GIPS standards, the voluntary rules many investment firms follow to report their returns, say returns for periods under a year must not be annualized. The calculator still shows the yearly rate, because people ask for it, but it puts the total first and warns you.

What an ROI doesn’t see

  • Risk. Two investments with the same ROI can carry very different chances of losing money. The ROI only tells you what happened.
  • Borrowed money. With a loan, the ROI on your own cash can be much higher, or much lower, than on the full price. Type in only the cash that came out of your pocket, and take the loan off the sale price.
  • Your own time. A rental or a small business can take hours every week, and the ROI only counts the money.
  • Gains on paper. Until you sell, the value can still change, and selling has costs and tax that the paper value doesn’t show.
  • The dates you pick. Move the start or the end a few months and the ROI can change a lot, especially over short periods.
  • The ones that didn’t work. People remember the investments that went well. Your real return counts the others too. There’s more on what eats into a return in the hidden costs of buying stocks.

For a stock you bought and sold, with splits, partial sales and US taxes, the stock profit calculator goes deeper. To find how fast a number grew, or the growth rate across a series of years, use the CAGR calculator.

Questions people ask

How do you calculate ROI?

Take what you got back, add any income, and take away all the costs and what you paid. Then divide by what you paid, costs to buy included. With $10,000 in and $12,000 back, the profit is $2,000, and $2,000 divided by $10,000 is an ROI of 20%.

How do I calculate annualized ROI?

Use (1 + ROI)^(1 / years) - 1. A 50% ROI over 5 years is 1.5^(1/5) - 1, or 8.45% a year. In Excel or Google Sheets: =(end/start)^(1/years)-1. With dates, the years are the days between them divided by 365.25.

What is a good ROI?

It depends on the risk and the time. One yardstick: from 1928 to 2025, the S&P 500 grew 10.02% a year with dividends put back in. In those years, the worst 10-year stretch returned -1.67% a year and the best 20.11%. With your dates, the calculator shows what the index did over the same months.

How do I calculate ROI with monthly contributions or several deposits?

Use the “Money in and out” tab. Type each deposit and withdrawal with its date, and the value at the end. You get the money-weighted yearly return, the same as Excel’s XIRR, next to the simple ROI. With the default rows, the simple ROI is 60.71% and the yearly return is 9.19%.

Is this the same as XIRR in Excel or Google Sheets?

Yes, the “Money in and out” tab does. It solves the same equation as Excel’s XIRR, with the days divided by 365, and with Microsoft’s own XIRR example it gives 37.34%, like Excel. Google Sheets has an XIRR function with the same inputs. If more than one rate fits, Excel shows only one, and which one depends on where it starts looking: 10% unless you give it another guess. This calculator lists them all.

Why is my annualized ROI so high for a short trade?

Because the yearly rate assumes the gain repeats all year. A 5.3% gain in 21 days works out to about 145% a year. Investment firms that follow the GIPS standards don’t annualize anything under a year. For short periods, read the total ROI.

Why do ROI calculators give different results?

Usually it’s one of four things: compounding or a plain division by the years, 365 or 365.25 days in a year, whether the income counts, and whether the costs count. The table “Why calculators show different numbers” shows each version with your numbers.

What’s the difference between ROI, CAGR and IRR?

ROI is the total gain over what you put in, with no time in it. CAGR is the yearly rate between a start value and an end value. IRR, or XIRR with dates, is the yearly rate when money goes in and out more than once. With one deposit and one end value, the yearly ROI, the CAGR and the IRR come out the same, apart from the small difference between a 365-day and a 365.25-day year. Bufetico also has a CAGR calculator.

Should I include dividends or rent in my ROI?

Yes, if you kept them. A stock whose price went nowhere but paid 3% a year in dividends made money. Leave them out only if you put them back into the same investment, because then they’re already in the final value.

Should fees and taxes be included?

Yes. They’re money that came out of your pocket. When funds report their yearly returns, the SEC has them count the sales charges as part of the money put in and take the charges at the end off the final value. This calculator does the same, and shows the result before and after tax.

How do I calculate the ROI on a rental property with a mortgage?

Count your own cash. Type the down payment as the amount invested and the closing costs as the costs to buy. As the sale price, type what you sold for minus what you still owed on the loan. Rent minus the mortgage payments goes in as income. Repairs, insurance and property tax go in costs along the way, and so does the gap if the mortgage payments came to more than the rent. The example “A rental with a loan” works that way. If the rent came in over many years, the “Money in and out” tab gives a fairer yearly rate.

What about cash-on-cash return?

Cash-on-cash is one year of cash flow divided by the cash you put in, closing costs included. It leaves out the sale and what the property is worth. To get it here, type all the cash you put in, closing costs included, as the amount invested and the same number as the value, with 0 for the costs to buy, to sell and along the way. Then type one year of rent minus every cost, mortgage payments included, as income, and set the time to 1 year. The total ROI is your cash-on-cash.

Can it project a future ROI?

Not on its own. It works on numbers you already have, or on an end value you type in. To see where money could grow with a return you pick and deposits every month, use the investment calculator.

What does a negative ROI mean?

That you got back less than you put in. -100% means you lost everything. With a loan you can lose more than you put in, and then there’s no yearly rate, only the loss in money.

How do I find my real ROI after inflation?

Divide one plus the ROI by one plus the inflation over the same time, and take away one. The calculator uses the official US consumer price index between your dates when the amounts are in dollars, and the rate you type otherwise.

Did my investment beat the S&P 500?

Type your dates, and the calculator shows what the S&P 500 returned between the same months, with dividends. If you added money on several dates, the “Money in and out” tab puts the same amounts into the index in the same months and takes out the same withdrawals. With the default rows, that comes to 17.3% a year.

What’s the difference between ROI and return on invested capital?

ROI is about your money in one investment. Return on invested capital is about a company: how much profit it makes on all the money put into the business. There’s more in the lesson on what return on invested capital is.

Why doesn’t my broker’s return match this one?

Brokers use different methods. Many show a time-weighted return, which measures how the investments did and leaves out when you added or took out money. The money-weighted return here measures your own result, timing included. Each one is right for what it measures.

Can I use it for a business or marketing ROI?

Yes. Type what it cost up front as the amount invested, the extra profit or the savings as income, any running costs as costs along the way, and whatever is left at the end as the value. The example “A business project” works that way. For the profit, use what the extra sales left after the cost of the goods, or the ROI comes out too high.

How much do I need to sell for to make a certain return per year?

Type it in “A yearly return to compare with,” under “Tax and a return to compare with.” The answer shows what you’d have needed to sell for over the same time. With the default numbers and 7% a year, it’s $16,740.

Does it work in other currencies?

Yes. Pick yours at the top. The math is the same. The CPI and the S&P 500 are US figures, so with another currency the calculator uses the inflation rate you type, and the S&P 500 line is the index’s return in dollars, without what the exchange rate did.

How is this different from the stock profit and CAGR calculators?

The stock profit calculator goes deep on one stock position: splits, partial sales, lots and US taxes. The CAGR calculator finds a growth rate between two numbers or across a series of years. This one is for the return on any investment, with costs, income, tax and inflation, money added on different dates, and a side-by-side comparison.

Is what I type saved anywhere?

No. Everything is calculated in your browser. The numbers only go into the page address, so the link you copy opens the same result.

Before you decide

This calculator is an educational tool. It does the math on the numbers you enter. It also shows data from other sources, like the history of the S&P 500. And it shows figures measured in Bufetico’s own data. This page gives the source and date of each one. That data can have errors and can go out of date. The past doesn’t tell you what comes next. The calculator doesn’t know your situation. Its result is hypothetical and changes with every input. It doesn’t guarantee anything. None of this is investment, tax or legal advice, or a recommendation to buy, hold or sell any security. Neither Bufetico nor JH Grandgerard is a registered investment adviser, a broker or a tax adviser. Bufetico sells a subscription to a stock screener, and this page links to it.

The tax figures are rough estimates for the year shown. Tax rules change, so check yours with your tax office or a tax professional.

Terms for the free tools

Sold too early, or held on too long?

Join the waitlist and I'll email you when Bufetico opens, plus a new article or tool now and then.

No more than one email a week. You can unsubscribe anytime, and the Privacy Policy explains how we handle your name and email.

Can't tell a cheap stock from a dying one?

The Bufetico Filter checks more than 30,000 companies against six layers and shows you only the ones that pass. You decide how strict each layer is. Bufetico opens soon.

Join the waitlist »