ROI calculator

Enter what an investment cost and what it brought back to see return on investment, net gain and, if you add the time it took, the annualized rate.

What came back
Add how long the money was invested to see annualized ROI.
Return on investment
—
Net gain
—
Amount returned
—
Investment length
—
Annualized ROI
—

Annualized ROI is the compound annual growth rate (CAGR) over the length you enter.

How the ROI calculator works

Return on investment (ROI) compares what an investment earned with what it cost. Enter the amount invested and either the total amount it returned or the net gain, and the calculator shows ROI as a percentage of the money put in. Add how long the money was tied up and it also shows annualized ROI: the steady yearly rate that turns the amount invested into the amount returned over that time.

Net gain = amount returned − amount invested
ROI = net gain ÷ amount invested × 100
Annualized ROI = (amount returned ÷ amount invested)^(1 ÷ years) − 1

Simple ROI or annualized ROI?

Simple ROI ignores time. A 50% return is excellent over one year and weak over ten, yet simple ROI shows 50% either way. Annualized ROI, the compound annual growth rate (CAGR) of the investment, puts projects of different lengths on the same yearly footing, so you can compare a one-year campaign with a three-year software project. It assumes the gain builds up at a steady rate and that the money stays invested until the end.

For business decisions, the amount returned should be the extra gross profit or the costs saved because of the investment, not revenue. A campaign that brings in $40,000 of sales at a 50% gross margin returned $20,000, not $40,000.

Worked examples

Example 1: a marketing campaign

A company spends $20,000 on a campaign: ads, an agency and design. Customers it can trace to the campaign bring in $32,000 of gross profit. Net gain is 32,000 − 20,000 = $12,000, and ROI is 12,000 ÷ 20,000 = 60%. Every dollar spent came back with 60 cents of profit on top.

Example 2: a software purchase

A business spends $50,000 on software, including setup and three years of subscription fees. Over those three years it saves $85,000 in staff time and errors. Net gain is $35,000 and simple ROI is 35,000 ÷ 50,000 = 70%. Annualized ROI is (85,000 ÷ 50,000)^(1 ÷ 3) − 1 = 19.35% a year. Dividing 70% by three years gives 23.33%, which overstates the yearly return because it ignores compounding.

The same math works for a hire. Use the total from the employee cost calculator (salary, payroll taxes, benefits and equipment) as the amount invested, and the gross profit or savings the person adds as the amount returned.

Common mistakes

  • Ignoring time. Two projects with the same ROI are not equal if one takes twice as long. Enter the length to see the annualized rate, or check how quickly the cash comes back with the payback period calculator.
  • Ignoring ongoing costs. Subscriptions, maintenance, training and the hours your team spends running the project are part of the amount invested. Leaving them out inflates ROI.
  • Using revenue as the return. Revenue still has to pay for what you sold. Use gross profit or savings.
  • Annualizing very short periods. A 5% gain in one month annualizes to almost 80% a year, which assumes you could repeat it twelve times in a row.
  • Crediting the investment with gains it did not cause. Sales that would have happened anyway are not a return on the campaign.

For marketing measured per customer, the CAC calculator and LTV calculator split ROI into acquisition cost and lifetime value. Before you commit to a build, our guide to building a business case for custom software shows how to estimate the return, and FP&A software tracks actual results against the plan. If the investment is automation, see which business process automations are worth the engineering cost.

Frequently asked questions

How do you calculate ROI?

Subtract the amount invested from the amount returned, divide by the amount invested and multiply by 100. $20,000 that returns $32,000 has a net gain of $12,000 and an ROI of 60%.

What is annualized ROI?

It is the yearly rate that turns the amount invested into the amount returned over the holding period: (returned ÷ invested)^(1 ÷ years) − 1. $50,000 that becomes $85,000 over three years is 19.35% a year, while simple ROI is 70%.

Can ROI be negative?

Yes. If an investment returns less than it cost, the net gain and the ROI are negative. $10,000 that returns $7,000 has an ROI of −30%, and an investment that returns nothing has an ROI of −100%.

What is a good ROI?

There is no single number. Compare the result with what the same money could earn elsewhere at similar risk, such as paying down debt or funding another project, and compare annualized rates when the time periods differ.

Should ROI use revenue or profit?

Profit. Use the extra gross profit or the costs saved because of the investment. Revenue overstates the return because it still has to cover the cost of what was sold.

From the blog

Further reading.

Product

Build a Business Case for Custom Software

How to build a custom software business case: put the problem in dollars, set measurable goals, get a realistic cost range, model ROI, and scope an MVP.

Learn more
Finance & Accounting

Best FP&A Software in 2026: 6 Picks for Small Finance Teams

Compare the best FP&A software for small and mid-size finance teams: Datarails, Cube, Vena, Planful, Pigment and Abacum, with plans, pricing and limits.

Learn more
Engineering

7 Business Process Automations Worth the Engineering Cost

Business process automation use cases worth the engineering cost: high-frequency work with clear triggers and measurable failure costs, plus a 3-question test.

Learn more
More free tools

Other calculators.

Salary to Hourly CalculatorOvertime CalculatorPTO Accrual CalculatorBreak Even CalculatorWebsite Cost CalculatorLTV CalculatorCAC CalculatorEmployer Payroll Tax CalculatorEmployee Cost Calculator1099 vs W2 CalculatorMarkup CalculatorRaise CalculatorCommission CalculatorPayback Period CalculatorAll tools