Skip to content
CalcShown

Popular

    Money & Business

    ROI Calculator

    Enter what you put in, what you got back and how long you held it to get your return on investment and the yearly rate that matches it. You can count dividends, rent and fees, see what's left after tax and inflation, work out the true yearly return (XIRR) on an account you added money to and took money out of, or rank several investments side by side.

    Verified · 29 tests · 9 sources · Updated

    What verified means on this page

    • Tested. 29 automated tests check this calculator against official examples, published tables or hand-worked answers every time the site changes (last run December 3, 2026).
    • Sourced. The formulas and data come from the 9 sources listed below, checked against a second source.
    • Shown. "Show the Math" lists every step with your own numbers, so you can check the answer yourself.
    • Open to correction. Spot an error? Tell us. We fix it, add a test so it can't come back, and log it.
    How we verify every calculator →

    What you paid in.

    What you sold it for or what it’s worth now.

    Income, Costs, Tax & Inflation

    Dividends, interest or rent you collected along the way.

    Commissions, closing costs, repairs. Added to what you put in.

    e.g. 15% long-term capital gains. 0 to skip.

    Shows the real return in today’s money. 0 to skip.

    ROI Formulas

    Find Formula $10,000 → $14,500 in 5 years
    Profit money back − money in $4,500
    ROI profit ÷ money in × 100 45%
    Annualized ROI (back ÷ in)^(1 ÷ years) − 1 7.71% a year
    Money multiple back ÷ in × 1.45
    Real yearly return (1 + rate) ÷ (1 + inflation) − 1 4.58% at 3% inflation

    Money in is what you paid plus fees, commissions and closing costs. Money back is the sale price or today’s value plus any dividends, interest or rent you collected.

    Total ROI to Yearly Return

    Total ROI Over 3 years Over 5 years Over 10 years
    10% 3.23% 1.92% 0.96%
    25% 7.72% 4.56% 2.26%
    50% 14.47% 8.45% 4.14%
    100% 25.99% 14.87% 7.18%
    200% 44.22% 24.57% 11.61%
    300% 58.74% 31.95% 14.87%

    Dividing by the Years Overstates a Gain

    Returns compound, so splitting the total evenly across the years always comes out too high. The bigger the gain, the bigger the error.

    Total ROI over 10 years Total ÷ years (wrong) Compound yearly rate Overstated by
    50% 5% 4.14% 0.86 points
    100% 10% 7.18% 2.82 points
    200% 20% 11.61% 8.39 points
    400% 40% 17.46% 22.54 points

    How Long to Double Your Money

    Yearly return Doubles in Rule of 72 says
    3% 23.4 years 24.0 years
    5% 14.2 years 14.4 years
    7% 10.2 years 10.3 years
    10% 7.3 years 7.2 years
    12% 6.1 years 6.0 years

    The exact answer is ln 2 ÷ ln(1 + rate). The rule of 72 (72 ÷ rate) is a close shortcut for rates between about 6% and 10%.

    ROI With Deposits and Withdrawals (XIRR)

    Simple ROI only works for one lump sum in and one amount out. When you add money over time, a deposit made last month hasn’t had time to grow, so dividing your profit by the total deposits understates the return. XIRR finds the single yearly rate where every flow, discounted by its age in days ÷ 365, adds up to zero. This is the same formula Excel uses, and it gives Microsoft’s own example (−$10,000, then four payouts over 15 months) as 37.34%.

    • Deposits are money leaving you, withdrawals and today’s value are money coming back.
    • If money switches direction several times, more than one rate can balance the flows. The calculator finds all of them and tells you when that happens.
    • For a single deposit and a single final value, XIRR equals the annualized ROI above.

    Marketing ROI and ROAS

    Measure Formula Example
    ROAS revenue ÷ ad spend 5× (500%)
    Marketing ROI profit ÷ marketing spend 200%
    ROI on all costs profit ÷ (products + marketing) 66.67%
    Break-even ROAS marketing ÷ ad spend ÷ margin 1.67×

    The example is the calculator’s default campaign: $10,000 of sales from $2,000 of ads, on products that cost $4,000, which leaves $4,000 of profit. Google Ads defines ROAS as conversion value ÷ ad spend, and its ROI as profit ÷ all costs with the products included. The American Marketing Association’s marketing ROI takes the revenue the marketing added times the gross margin, subtracts the marketing spend and divides by it, which is the 200% here.

    The same AMA article adds two cautions. Count only the revenue the campaign added, since sales you’d have made anyway inflate the return. And returns fall as spend grows: its example earns 150% on the first $10,000 and 40% on the next $10,000. A high average return doesn’t mean a bigger budget earns the same.

    Real Estate ROI Example

    A rental bought for $250,000 cash, with $5,000 of closing costs, nets $18,000 a year in rent after expenses and sells five years later for $300,000 after selling costs. Enter $250,000 invested, $300,000 returned, 5 years, $90,000 of income and $5,000 of costs.

    Measure Result
    ROI 52.94% ($135,000 on $255,000)
    Annualized ROI 8.87%
    XIRR, rent counted each year 9.95%
    Payback from rent alone 14.17 years
    Cap rate in year one 7.2%

    The lump-sum formula treats the rent as if it all came in at the sale, which understates the yearly return. Entered year by year in the XIRR mode, the same deal earns 9.95% a year. The cap rate, net operating income ÷ price ($18,000 ÷ $250,000), measures the rent alone and leaves out the sale; work it out for a property with the cap rate calculator.

    What Other ROI Calculators Get Wrong

    • An arithmetic slip. One popular rate-of-return page says $1,000 that grows to $2,500 is a 250% return. It’s 150%, because the $1,000 you started with isn’t profit.
    • No day count. Most ROI calculators take dates but never say how they turn days into years. This one divides by 365, like Excel’s XIRR, and shows the day count.
    • No fees, income, tax or inflation. Only one of the top pages takes income and expenses, and none show after-tax or real returns.
    • Annualizing a few weeks without a warning. A 5% gain in 3 months annualizes to 21.55%. That’s a fair comparison figure, but not a return you can expect to repeat. Here you get a note when the hold is under a year.
    • One amount in, one amount out. None of the top ROI pages handle money added or taken out over time. The XIRR mode does.

    Frequently Asked Questions

    How do you calculate ROI?

    Subtract what you put in from what you got back, divide by what you put in, and multiply by 100. $10,000 that grows to $14,500 is a $4,500 profit, and 4,500 ÷ 10,000 = 45% ROI. Count every dollar on both sides. Fees and closing costs go with the money put in, and dividends or rent go with the money back.

    What is annualized ROI?

    It's the yearly rate that, compounded, turns your starting amount into your ending amount. The formula is (money back ÷ money in)^(1 ÷ years) − 1. A 45% gain over 5 years is 1.45^(1/5) − 1 = 7.71% a year. Use it to compare investments held for different lengths of time.

    Why isn't annualized ROI just the total divided by the years?

    Because returns compound. Each year's gain earns returns of its own in later years. 45% over 5 years looks like 9% a year, but 9% compounded for 5 years gives 53.86%. The rate that really gives 45% is 7.71%. The gap grows with time and size, so 200% over 10 years is 11.61% a year, not 20%.

    What is a good ROI?

    It depends on the risk and how long your money is tied up. Compare your annualized figure with what a safe option paid over the same time, like a CD or Treasury bill, and with a broad stock index fund. Doing better than the safe rate is the least you'd want from a riskier investment.

    What is the difference between ROI and ROAS?

    ROAS is revenue divided by ad spend, so $10,000 of sales from $2,000 of ads is 5× (500%). ROI counts profit. If the products cost $4,000, the campaign made $4,000, a 200% return on the $2,000 of marketing. Google Ads' own ROI formula also counts the product costs as cost, which gives 66.67%. A ROAS can look healthy while losing money; at a 60% margin anything under 1.67× loses.

    How long until an investment pays for itself?

    That's the payback period, what you put in divided by the income it brings in each year. A rental that cost $255,000 and nets $18,000 a year pays back in 14.17 years from rent alone. It ignores the sale price and when the money arrives, so read it next to the ROI.

    How do I calculate ROI when I added money over time?

    Use the XIRR mode. Enter each deposit and withdrawal with its date, plus what the account is worth now. XIRR finds the one yearly rate that accounts for how long each dollar was invested, using the same formula as Excel. Dividing your profit by the total deposits treats a deposit made last month as if it had been in from the start.

    How do I count time between two dates?

    This calculator counts the days and divides by 365, the same as Excel's XIRR and CFI's annualized ROI formula. August 2, 2015 to February 14, 2022 is 2,388 days, or 6.542 years. With $1,000 growing to $1,500 over that time, the annualized return is 6.39%.

    Should I include taxes and inflation in ROI?

    Include them if you want to know what you really kept. Under Income, Costs, Tax & Inflation, enter a tax rate on the profit to see after-tax ROI. Enter yearly inflation to see the real return in today's money, (1 + return) ÷ (1 + inflation) − 1. An 8% return with 3% inflation is 4.85% real, not 5%. The rate to enter depends on how long you held the investment and the account it sits in, so check with a tax preparer when a big decision rests on the after-tax number.

    Can ROI be negative?

    Yes. If you get back less than you put in, the ROI is negative. Buying shares for $1,900.50 and selling for $1,371 is a −27.86% ROI. The lowest it can go is −100%, when you get nothing back.

    Sources

    1. Corporate Finance Institute, ROI formula and annualized ROI, with years = days ÷ 365 (stock example $12.50 → $15.20)
    2. Microsoft Support, XIRR function (formula, days ÷ 365, example = 37.34%)
    3. San José State University, Thayer Watkins, Real interest rate, (1 + nominal) ÷ (1 + inflation) − 1, not nominal − inflation
    4. IRS Topic 409, Capital gains and losses (long-term rates 0%, 15%, 20%)
    5. Google Ads Help, Return on investment (ROI) (profit ÷ all costs, products included; $1,200 example = 50%)
    6. Google Ads Help, About Target ROAS bidding ($5 in sales ÷ $1 in ad spend = 500%)
    7. American Marketing Association, Dominique M. Hanssens, Using return on marketing investment effectively (2024)
    8. Brand Finance, Measuring marketing ROMI (net of marketing spending ÷ marketing invested)
    9. Corporate Finance Institute, Payback period