Business13 min readUpdated Mar 25, 2026

How to Calculate ROI: Formula, Examples, and Free Calculator

The Calculory Team

Content and Research

Learn how to calculate Return on Investment (ROI) with the standard formula, real-world examples for marketing, real estate, and stocks, and understand the limitations of basic ROI.

Key Takeaways

  • The basic ROI formula is (Gain - Cost) / Cost x 100, giving you a percentage that represents how much profit you earned relative to your investment.
  • A positive ROI means you earned more than you invested, while a negative ROI means you lost money on the investment.
  • Basic ROI does not account for how long the investment took, so a 50% ROI over five years is very different from a 50% ROI over six months.
  • Annualized ROI allows you to compare investments of different durations on an equal footing, making it a more useful metric for decision-making.
  • Marketing ROI (often called ROAS) and investment ROI use the same core formula but differ in what counts as a "gain" and what counts as a "cost."
  • A "good" ROI depends on the industry and risk level: stock market averages 7-10% annually, while real estate typically targets 8-12% and marketing campaigns aim for 300-500% ROAS.

What is ROI? A Simple Definition

Return on Investment (ROI) is a financial metric that tells you how much profit or loss you made on an investment relative to what you spent. It is expressed as a percentage, making it easy to compare vastly different investments on a level playing field. At its core, ROI answers one question: for every dollar I put in, how much did I get back? If you invested $1,000 and received $1,200 in return, your ROI is 20%. You earned 20 cents of profit for every dollar invested. If you invested $1,000 and only recovered $800, your ROI is -20%. You lost 20 cents on every dollar. ROI is popular because of its simplicity. Unlike more complex financial metrics such as Internal Rate of Return (IRR) or Net Present Value (NPV), ROI requires only two numbers: what you put in and what you got out. This makes it accessible to anyone, from a small business owner evaluating a marketing campaign to an individual investor comparing two stocks. However, that simplicity comes with trade-offs. Basic ROI does not account for the time period of the investment, the risk involved, inflation, taxes, or opportunity costs. A 100% ROI sounds fantastic until you learn it took 15 years to achieve. An 8% ROI sounds modest until you realize it happened in 30 days. These limitations do not make ROI useless; they just mean you need to understand what it tells you and what it leaves out. The rest of this guide covers both.

The ROI Formula Explained

The standard ROI formula is: ROI = ((Gain from Investment - Cost of Investment) / Cost of Investment) x 100 Or equivalently: ROI = (Net Profit / Cost of Investment) x 100 The "Gain from Investment" is the total amount you received back, including both the return of your original investment and any profit. The "Cost of Investment" is the total amount you put in. The difference between them is your net profit (or net loss if negative). Let us break it down with clear numbers. You buy shares of a company for $5,000 (your cost). A year later, you sell them for $6,500 (your gain). ROI = (($6,500 - $5,000) / $5,000) x 100 = ($1,500 / $5,000) x 100 = 30%. Another example: you spend $2,000 on a website redesign (your cost). Over the next quarter, the new site generates $7,000 in additional revenue that you can attribute to the redesign (your gain). ROI = (($7,000 - $2,000) / $2,000) x 100 = ($5,000 / $2,000) x 100 = 250%. A negative example: you invest $10,000 in a startup that eventually returns $6,000 before folding. ROI = (($6,000 - $10,000) / $10,000) x 100 = (-$4,000 / $10,000) x 100 = -40%. You lost 40% of your investment. The formula is the same regardless of the investment type. What changes is how you define and measure the gain and cost for your specific situation, which the following sections explore in detail.

Step-by-Step ROI Calculation Examples

Scenario 1: Launching a new product. A bakery invests $3,500 in developing a new line of artisan breads: $1,200 for recipe development, $800 for new equipment, and $1,500 for marketing. In the first six months, the new bread line generates $9,800 in revenue with $4,200 in direct costs (ingredients, labor, packaging). Net profit from the new line: $9,800 - $4,200 - $3,500 = $2,100. ROI = ($2,100 / $3,500) x 100 = 60%. The investment paid for itself and returned 60% profit in six months. Scenario 2: Employee training program. A company spends $15,000 sending 10 employees to a certification program. Over the following year, these employees complete projects 20% faster, saving the company an estimated $28,000 in labor costs. ROI = (($28,000 - $15,000) / $15,000) x 100 = 86.7%. For every dollar spent on training, the company saved an additional 87 cents. Scenario 3: Equipment upgrade. A manufacturing firm spends $50,000 on a new machine that reduces defects and increases output. In year one, the machine generates $18,000 in additional revenue and saves $8,000 in wasted materials, for a total gain of $26,000. Year-one ROI = (($26,000 - $50,000) / $50,000) x 100 = -48%. The machine has not paid for itself yet. But if the same gains repeat in year two, cumulative gain becomes $52,000. Cumulative ROI = (($52,000 - $50,000) / $50,000) x 100 = 4%. By year three, cumulative ROI reaches 56%. This illustrates why ROI should be evaluated over the appropriate time horizon for the investment type.

ROI for Marketing Campaigns

Marketing ROI is one of the most common applications of the formula, but it requires careful definition of both gains and costs. The gain from a marketing campaign is typically measured as the revenue (or profit) attributable to that campaign. The cost includes ad spend, agency fees, creative production costs, and any technology or tools used. The basic formula stays the same: Marketing ROI = ((Revenue Attributable to Campaign - Campaign Cost) / Campaign Cost) x 100. If you spend $5,000 on a Google Ads campaign that generates $20,000 in tracked sales, your marketing ROI is (($20,000 - $5,000) / $5,000) x 100 = 300%. You will also encounter ROAS (Return on Ad Spend), which is related but different. ROAS = Revenue / Ad Spend, expressed as a ratio or multiplier. For the same campaign: ROAS = $20,000 / $5,000 = 4x (or 400%). Notice that ROAS does not subtract the cost from the numerator, so a 300% ROI equals a 4x ROAS. A ROAS of 1x means you broke even; anything above 1x is profitable. Many advertising platforms report ROAS by default. The biggest challenge in marketing ROI is attribution: determining which sales were caused by the campaign versus sales that would have happened anyway. A customer might see your ad, visit your site three weeks later, and buy after reading a review. Did the ad cause the sale? Multi-touch attribution models attempt to solve this, but perfect attribution is nearly impossible. As a practical guideline, most businesses target a minimum marketing ROI of 200-400% (3x to 5x ROAS) to account for overhead costs not captured in the campaign cost. For brand awareness campaigns where the goal is visibility rather than immediate sales, ROI is harder to measure and often assessed through proxy metrics like reach, engagement, and brand recall surveys.

ROI for Real Estate Investments

Real estate ROI calculations are more nuanced than simple buy-and-sell investments because rental properties generate ongoing income in addition to (or instead of) appreciation in value. For a property flip, the calculation is straightforward. You buy a property for $200,000, spend $50,000 on renovations, and sell for $310,000. Total cost: $250,000. Gain: $310,000. But you also need to account for closing costs, holding costs (mortgage payments, insurance, taxes during the renovation period), and agent commissions. Suppose those add $22,000. Adjusted cost: $272,000. ROI = (($310,000 - $272,000) / $272,000) x 100 = 14%. If the flip took eight months, that 14% in eight months is solid; if it took three years, it is less impressive. For a rental property, annual ROI includes rental income. You buy a property for $300,000 with a $60,000 down payment. Annual rental income is $24,000, and annual expenses (mortgage payments, taxes, insurance, maintenance, management fees) total $20,400. Annual cash flow: $3,600. Cash-on-cash ROI = ($3,600 / $60,000) x 100 = 6%. This measures the return on the cash you actually invested (the down payment), not the total property value. Total ROI for rental property also includes appreciation and mortgage principal paydown. If the property appreciates 3% ($9,000) and you pay down $4,000 in mortgage principal during the year, your total gain is $3,600 + $9,000 + $4,000 = $16,600. Total ROI = ($16,600 / $60,000) x 100 = 27.7%. This demonstrates why real estate investors often quote different ROI figures; they may be measuring different things. Always ask whether an ROI figure includes only cash flow, or also appreciation and equity buildup.

ROI for Stock Investments

Stock ROI must account for both price appreciation and dividends. The formula becomes: ROI = ((Current Value - Purchase Price + Dividends Received) / Purchase Price) x 100. Example: You buy 100 shares of a company at $45 per share ($4,500 total). Over two years, the stock rises to $58 per share ($5,800 total), and you received $3.20 per share in total dividends ($320). ROI = (($5,800 - $4,500 + $320) / $4,500) x 100 = ($1,620 / $4,500) x 100 = 36%. Without dividends, the ROI would have been only 28.9%. Dividends can make a significant difference, especially for income-focused investments. For investments held over different time periods, raw ROI is misleading. A 36% ROI over two years is not the same as a 36% ROI over six months. To compare fairly, convert to annualized ROI, which is covered in a later section of this guide. Do not forget to account for transaction costs. Brokerage commissions (though many platforms now offer free trades), bid-ask spreads, and taxes on capital gains all reduce your actual ROI. If you owe 15% capital gains tax on your $1,620 profit, that is $243 in taxes. Your after-tax ROI drops to ($1,620 - $243) / $4,500 x 100 = 30.6%. When comparing individual stock ROI to benchmark indices, the S and P 500 has historically returned about 10% per year before inflation (roughly 7% after inflation). Any individual stock investment should be evaluated against this benchmark. A 15% annual ROI sounds good in isolation, but if the market returned 20% that same year, your stock underperformed despite the positive return.

Limitations of Basic ROI

While ROI is valuable for its simplicity, it has real limitations that can lead to poor decisions if ignored. Limitation 1: ROI ignores time. A 50% ROI is meaningless without knowing the time frame. Earning 50% in one year is excellent; earning 50% over ten years is below average. Basic ROI treats a one-month investment and a ten-year investment identically, which makes direct comparisons between investments of different durations unreliable. Limitation 2: ROI ignores risk. Two investments might both show a 20% ROI, but one was a government bond (extremely low risk) and the other was a speculative cryptocurrency trade (extremely high risk). The risk-adjusted return of the bond is far superior, but basic ROI does not capture this distinction. Limitation 3: ROI ignores the time value of money. A dollar today is worth more than a dollar five years from now because of inflation and the opportunity to invest that dollar elsewhere. Basic ROI does not discount future gains back to present value. For long-term investments, Net Present Value (NPV) or Internal Rate of Return (IRR) provide more accurate assessments. Limitation 4: ROI can be manipulated by how you define costs and gains. A marketing manager might exclude overhead costs to inflate campaign ROI. A real estate investor might exclude renovation costs to make a flip look more profitable. Always scrutinize what is included in both the numerator and denominator. Limitation 5: ROI does not consider opportunity cost. If you earn 8% on Investment A, that seems positive. But if you could have earned 12% on Investment B with the same capital and similar risk, you effectively lost 4% in potential gains. Basic ROI does not flag this comparison. Despite these limitations, ROI remains the most widely used metric because it is intuitive, quick to calculate, and universally understood. The key is supplementing it with additional analysis when the stakes are high.

Annualized ROI: Comparing Investments of Different Durations

Annualized ROI solves the time problem by converting any investment's return to an equivalent annual rate. This allows you to compare a three-month investment with a five-year investment on equal terms. The formula is: Annualized ROI = ((1 + ROI)^(1/n) - 1) x 100, where ROI is expressed as a decimal and n is the number of years. Example 1: You earn a 50% ROI over three years. Annualized ROI = ((1 + 0.50)^(1/3) - 1) x 100 = (1.1447 - 1) x 100 = 14.47% per year. This accounts for compounding and gives you the equivalent annual rate. Example 2: You earn a 20% ROI in six months (0.5 years). Annualized ROI = ((1 + 0.20)^(1/0.5) - 1) x 100 = ((1.20)^2 - 1) x 100 = (1.44 - 1) x 100 = 44% per year. The short time frame dramatically boosts the annualized figure. Example 3: You earn 80% ROI over five years. Annualized ROI = ((1 + 0.80)^(1/5) - 1) x 100 = (1.1247 - 1) x 100 = 12.47% per year. The long time frame reduces the annualized figure significantly. Now you can compare: Investment A returned 50% over three years (14.47% annualized), while Investment B returned 20% in six months (44% annualized). Investment B was the far better performer on an annual basis, even though Investment A had a higher total return. A word of caution: annualizing very short-term returns can be misleading. A 5% return in one week annualizes to over 1,100%, which is not sustainable. Annualized ROI works best for investments held at least a few months. For very short time frames, report the raw ROI with the time period clearly stated.

What is a Good ROI? Benchmarks by Industry

The definition of a "good" ROI depends entirely on the context, specifically the industry, risk level, and time horizon of the investment. Stock market: The long-term average annual return of the S and P 500 is approximately 10% before inflation and 7% after inflation. Any investment targeting stock-market-like risk should aim to beat this benchmark. Individual stock picking that consistently delivers 15%+ annual ROI is considered excellent. Hedge funds targeting 20%+ annual returns are considered top-tier performers. Real estate: A cash-on-cash ROI of 8-12% annually is generally considered good for rental properties. When factoring in appreciation and equity buildup, total annual returns of 15-25% are achievable in growing markets. House flips typically target a minimum ROI of 10-20% per project, accounting for the higher risk and effort involved. Marketing: As mentioned earlier, a minimum ROAS of 3x to 5x (200-400% ROI) is the standard target for direct-response marketing. Email marketing often achieves the highest ROI of any channel, with some studies citing 3,600% to 4,200% ROI, largely because the cost per email is extremely low. Small business investments: A new piece of equipment, a store renovation, or hiring an additional employee should typically target a 15-25% annual ROI to justify the capital outlay and risk. Lower returns may not adequately compensate for the time, effort, and risk involved in running a business. Education: The ROI of a college degree varies significantly by field. Engineering, computer science, and nursing degrees often show lifetime ROIs of 500-800%. Liberal arts degrees show lower financial ROI but may offer non-monetary returns that are harder to quantify. Remember that higher returns almost always come with higher risk. A "safe" investment returning 4-5% annually and a speculative venture promising 40% are not equivalent, even if the speculative venture delivers. Risk-adjusted returns are what sophisticated investors focus on.

Using an ROI Calculator

Calculating ROI by hand is straightforward for simple scenarios, but real-world investments often involve multiple costs, recurring gains, and time-based adjustments that benefit from a dedicated calculator tool. The Calculory ROI calculator lets you input your initial investment cost and the total return (or current value), and it instantly computes your ROI percentage and net profit in dollars. For investments held over time, it also calculates the annualized ROI so you can compare across different durations. Simply enter the investment period in months or years, and the calculator handles the compounding math. For business owners evaluating overall profitability, the profit margin calculator complements ROI by showing what percentage of revenue translates to profit. While ROI measures the return relative to your investment, margin measures profitability relative to revenue. Together, they give you a complete picture of financial performance. The compound interest calculator is especially useful for projecting future ROI on investments that compound over time, such as savings accounts, bonds, and reinvested dividends. Enter your initial investment, expected annual return rate, and time horizon to see how your money grows year by year. For entrepreneurs evaluating whether a new venture will be profitable, the break-even calculator determines how many units you need to sell (or how much revenue you need to generate) before your cumulative gains exceed your costs. Once you break even, every additional dollar of profit contributes to a positive and growing ROI. All of these calculators are free and require no account creation. For the most insightful analysis, use them in sequence: start with the ROI calculator to evaluate past investments, use the compound interest calculator to project future returns, check your margins with the profit margin calculator, and validate new ideas with the break-even calculator. This workflow gives you a comprehensive financial picture without needing a spreadsheet or an accounting degree.

Author Spotlight

The Calculory Team

Content and Research

Verified Expert Educator
roireturn-on-investmentbusinessinvestingmarketing-roireal-estatefinancecalculator