ROI Calculator
An ROI calculator estimates net return and return on investment percentage from two numbers: total gain and total cost. Enter what a project, campaign, purchase, or investment returned, enter what it cost you to run or acquire, and the tool subtracts one from the other, then expresses that difference as a percentage of cost. Marketers use it to compare ad spend against revenue, small business owners use it to check whether equipment or a hire paid off, and investors use it as a quick screening step before digging into cash-flow timing or tax treatment. Because the formula only needs gain and cost, it works for almost any scenario where you can state a total return and a total outlay in the same currency and the same time window.
Quick answer
Net return equals gain minus cost, so a positive number means the activity returned more than it cost, and a negative number means it lost money.
What this tells you
- •Net return equals gain minus cost, so a positive number means the activity returned more than it cost, and a negative number means it lost money.
- •ROI percentage compares net return with cost, which puts projects of different sizes on the same scale so a $500 result and a $500,000 result can be judged side by side.
- •A 0% ROI means gain and cost were exactly equal, so the investment broke even rather than lost money.
- •ROI is a single-period snapshot. It does not tell you how long the return took, so a 20% ROI over one month is far stronger than a 20% ROI over five years.
- •Use ROI as a screening estimate and pair it with broader cost analysis, cash-flow timing, and risk factors before making a final decision.
How to Use
- 1Enter the total gain value for the project, campaign, or investment. This is the full amount returned or the total value received, not just the profit margin.
- 2Enter the total cost invested, including every expense that went into producing that gain, such as materials, labor, ad spend, fees, or purchase price.
- 3Click Calculate to view the estimated net return in dollars and the ROI percentage.
- 4Read the secondary results to confirm the gain and cost figures match what you entered, then check the net return line for the dollar-level breakdown.
- 5Compare scenarios using consistent time periods and cost definitions. Comparing a one-month campaign against a one-year campaign will distort what the ROI percentage actually tells you.
How It Works
Formula
Net Return = Gain - Cost
ROI (%) = (Net Return / Cost) x 100The calculator subtracts total cost from total gain to get net return, the plain dollar profit or loss. It then divides net return by cost and multiplies by 100 to express that profit or loss as a percentage of what was spent. Gain is the full value returned, such as total revenue from a campaign or the sale price of an asset. Cost is everything spent to produce that gain, not just the initial purchase price. The formula assumes both figures cover the same time period and use the same currency, and it treats cost as a single lump sum rather than money invested gradually over time. Cost must be greater than zero for a percentage to be calculated, since dividing by a zero or negative cost produces a meaningless result.
Calculation note: values are processed in the order shown above, using the current input units.
Worked Examples
Marketing campaign ROI
This campaign returned $6,000 more than it cost to run. A 50% ROI means every dollar spent on the campaign generated an additional 50 cents in net return on top of getting that dollar back.
Software rollout spend
A larger project can post a smaller ROI percentage than a smaller one while still generating more dollars of profit. Here the $12,000 net return is double the campaign above, but the 30% ROI is lower because the cost base was also larger.
Equipment purchase that underperformed
A negative net return means the equipment produced less value than it cost. The -15% ROI shows the shortfall as a share of the original cost, which helps compare this loss against other underperforming purchases.
Freelance web project
Small projects can post high ROI percentages even with modest dollar amounts. A 60% ROI here means the project returned its full cost plus 60% more, which is useful when comparing project profitability regardless of size.
Property flip
For a real estate flip, cost should include the purchase price plus renovation, holding, and closing costs, not just the sale price minus the buy price. This 14% ROI reflects that broader cost total against the eventual sale gain.
Break-even ad test
A 0% ROI means the activity recovered exactly what it cost, with no profit and no loss. This differs from a negative ROI, where cost was not fully recovered.
Common mistakes
- Using revenue as gain without subtracting all relevant costs, which inflates the ROI figure
- Comparing ROI across projects that ran for different lengths of time without adjusting for duration
- Assuming ROI alone measures risk, cash-flow timing, or how quickly money was tied up
- Forgetting to include indirect costs like labor, overhead, platform fees, or financing charges in the cost total
- Treating a 0% ROI as a loss, when it actually means the cost was fully recovered with no profit or loss
- Ignoring that ROI does not show how long the return took to materialize, so a high ROI over several years may underperform a lower ROI earned in weeks
Limitations
This ROI estimate uses only gain and cost fields. It does not automatically include timing effects, taxes, inflation, financing terms, operational constraints, or risk adjustments unless you reflect them manually in the inputs. It does not annualize results or account for money invested gradually over time, so two scenarios with the same ROI percentage but very different time horizons will look identical here even though they are not equally attractive. Treat the output as a quick screening figure, then apply project-specific cost accounting and cash-flow analysis before making a final decision.
Embed this calculator on your site
Drop this single line where you want the calculator to appear. It is responsive, mobile-friendly, resizes automatically, and is free to use with attribution.
<script src="https://calctide.com/embed.js" data-tool="roi-calculator" async></script>Preview the embed at /embed/roi-calculator/.