Skip to content

Profit Calculator — Step-by-Step Solutions

The Profit Calculator provides five essential business calculations: basic profit (revenue minus cost), profit margin percentage, markup percentage, break-even analysis, and return on investment (ROI).

Enter your figures to see instant results with step-by-step working and visual breakdowns. Whether you are pricing a product, evaluating an investment, or planning a business, this calculator covers the core profitability metrics you need.

Your calculations will appear here

How to Use the Profit Calculator

  1. Choose a calculation mode using the tabs at the top. The Profit mode calculates the simple difference between revenue and cost, giving you the absolute dollar amount of profit or loss on any transaction.
  2. Switch to the Profit Margin mode to express your profit as a percentage of revenue. Enter your total revenue and total cost, and the calculator instantly shows the margin percentage alongside the dollar profit and a visual revenue breakdown bar.
  3. Use the Markup mode when you need to calculate the percentage added on top of your cost to arrive at the selling price. This is especially useful for retail pricing, wholesale mark-ups, and setting prices based on cost-plus strategies.
  4. The Break-Even mode requires three inputs: fixed costs (rent, salaries, insurance), the selling price per unit, and the variable cost per unit (materials, shipping, commissions). It calculates the exact number of units you must sell to cover all costs and start generating profit.
  5. Select the ROI mode to evaluate investment performance. Enter the total return (or gain) and the original investment cost. The calculator shows the percentage return and the net dollar gain, helping you compare different investment opportunities side by side.
  6. All modes display a detailed step-by-step solution below the results. Use the share URL at the bottom to save your calculation or send it to colleagues, accountants, or business partners for review.

Formula and Theory

Profit is the financial gain remaining after all costs are subtracted from revenue. There are several layers of profit that businesses track. Gross profit is revenue minus the direct cost of goods sold (COGS), which includes raw materials, manufacturing labour, and packaging. Operating profit (also called EBIT, earnings before interest and taxes) subtracts operating expenses such as rent, utilities, marketing, and administrative salaries from gross profit. Net profit is the bottom line after all expenses, including taxes, interest payments, depreciation, and one-off charges, have been deducted. Each layer reveals something different: gross profit shows production efficiency, operating profit shows how well the core business runs, and net profit shows overall financial health. A company can have strong gross margins but weak net margins if operating costs or debt payments are high.

Profit margin and markup are two ways of expressing the same profit figure as a percentage, but they use different denominators and the distinction trips up many business owners. Profit margin divides profit by revenue (the selling price), answering the question "what fraction of each dollar earned is profit?" Markup divides profit by cost, answering "how much did I add on top of what I paid?" For the same transaction, markup is always the larger number. If you buy a product for $60 and sell it for $100, the profit is $40. The margin is 40/100 = 40%, but the markup is 40/60 = 66.7%. A 100% markup means you doubled the cost, which gives a 50% margin. A 50% margin means you kept half of every dollar, which requires a 100% markup. The conversion formulas are: Margin = Markup / (1 + Markup) and Markup = Margin / (1 - Margin). Understanding this difference is critical for pricing strategies, particularly in retail, e-commerce, and wholesale distribution where both terms appear in vendor negotiations.

Break-even analysis is a cornerstone of business planning. It answers the question: how many units must I sell before I stop losing money? Every business has fixed costs (rent, insurance, salaries, loan payments) that must be paid regardless of sales volume, and variable costs (materials, shipping, commissions, packaging) that scale with each unit sold. The contribution margin is the selling price minus the variable cost per unit. It represents how much each sale contributes towards covering fixed costs. The break-even point in units equals fixed costs divided by the contribution margin. Once you sell beyond the break-even point, each additional unit generates pure profit equal to the contribution margin. For example, a coffee shop with $8,000 monthly fixed costs selling lattes at $5.00 with $1.50 in variable costs per latte has a contribution margin of $3.50. The break-even point is 8,000 / 3.50 = 2,286 lattes per month, or roughly 76 per day. Break-even analysis also helps evaluate pricing changes: raising the price by $0.50 would lower the break-even to 2,000 lattes but might reduce demand.

Return on investment (ROI) is the universal metric for evaluating whether an investment was worthwhile. The formula is straightforward: ROI = (Net Gain / Investment Cost) times 100. An ROI of 100% means you doubled your money; an ROI of -20% means you lost a fifth of your investment. ROI is used across every domain: marketing managers measure ROI on advertising spend, property investors compare ROI across rental properties, and business owners evaluate ROI on equipment purchases or hiring decisions. The strength of ROI is its simplicity and comparability. However, basic ROI does not account for time. A 50% ROI over one year is far better than a 50% ROI over five years. For time-adjusted comparisons, analysts use annualised ROI or internal rate of return (IRR). Despite this limitation, ROI remains the most widely used metric for quick investment comparisons.

Real-world profit metrics vary dramatically by industry and business model. E-commerce businesses typically operate on gross margins of 40 to 60% but net margins of only 5 to 10% after advertising, fulfilment, and platform fees. SaaS (software as a service) companies often achieve gross margins above 80% because the marginal cost of serving one more customer is near zero, but they may run at a net loss for years while investing in growth. Restaurants operate on notoriously thin net margins of 3 to 9%, with food costs (COGS) consuming 28 to 35% of revenue and labour another 25 to 35%. Understanding these benchmarks is essential for setting realistic targets. A 20% net margin would be exceptional in hospitality but below average in software. When evaluating profitability, always compare against industry peers rather than using a universal standard.

Worked Examples

Example 1: Simple profit from revenue and cost

Problem: A shop sells a product for $50 that costs $30 to produce. What is the profit?

Solution: Profit = Revenue - Cost = $50 - $30 = $20. The transaction generates a positive profit of $20 per unit.

Answer: $20

Example 2: Profit margin for an e-commerce product

Problem: An online retailer sells a pair of trainers for $120. The landed cost (product, shipping, duties) is $54. What is the profit margin?

Solution: Profit = $120 - $54 = $66. Profit Margin = ($66 / $120) times 100 = 55%. This means 55 cents of every dollar in revenue is gross profit before operating expenses.

Answer: 55%

Example 3: Markup calculation for retail pricing

Problem: A retailer buys handbags wholesale at $80 each and wants a 75% markup. What should the selling price be, and what is the resulting margin?

Solution: Markup amount = $80 times 0.75 = $60. Selling price = $80 + $60 = $140. Profit margin = $60 / $140 times 100 = 42.9%. A 75% markup translates to a 42.9% margin.

Answer: $140 selling price (42.9% margin)

Example 4: Break-even for a coffee shop

Problem: A coffee shop has $8,000 in monthly fixed costs (rent, staff, utilities). Each coffee sells for $5.00 with variable costs of $1.50 (beans, cup, milk). How many coffees must be sold to break even?

Solution: Contribution margin = $5.00 - $1.50 = $3.50 per coffee. Break-even units = $8,000 / $3.50 = 2,285.7, round up to 2,286 coffees. Break-even revenue = 2,286 times $5.00 = $11,430.

Answer: 2,286 coffees ($11,430 revenue)

Example 5: ROI on a marketing campaign

Problem: A company spends $5,000 on a Google Ads campaign that generates $18,000 in attributable revenue with $9,000 in product costs. What is the ROI on the ad spend?

Solution: Net gain from the campaign = $18,000 revenue - $9,000 product costs - $5,000 ad spend = $4,000. ROI = ($4,000 / $5,000) times 100 = 80%. For every dollar spent on ads, the company earned $0.80 in profit.

Answer: 80% ROI

Example 6: Comparing two products by margin

Problem: Product A sells for $200 with a cost of $120. Product B sells for $80 with a cost of $35. Which product has the higher profit margin?

Solution: Product A: Profit = $80, Margin = $80/$200 = 40%. Product B: Profit = $45, Margin = $45/$80 = 56.25%. Product B has a higher margin despite a lower absolute profit. If shelf space is limited, Product B generates more profit per dollar of revenue.

Answer: Product B (56.25% vs 40%)

Example 7: Break-even with multiple products

Problem: A bakery sells croissants ($4, variable cost $1.20) and sandwiches ($8, variable cost $3.50). It sells twice as many croissants as sandwiches. Fixed costs are $6,000/month. Find the break-even in total units.

Solution: Contribution margins: croissant = $2.80, sandwich = $4.50. Weighted average (2:1 ratio) = (2 times $2.80 + 1 times $4.50) / 3 = $10.10 / 3 = $3.367. Break-even = $6,000 / $3.367 = 1,782 total units (1,188 croissants and 594 sandwiches).

Answer: 1,782 total units

Example 8: Net vs gross profit

Problem: A freelance consultant earns $120,000 in annual revenue. Direct costs (software, subcontractors) are $25,000. Operating expenses (office, insurance, marketing) are $30,000. Taxes are $16,250. What are the gross profit, operating profit, and net profit?

Solution: Gross profit = $120,000 - $25,000 = $95,000 (79.2% margin). Operating profit = $95,000 - $30,000 = $65,000 (54.2% margin). Net profit = $65,000 - $16,250 = $48,750 (40.6% margin). Each layer subtracts a different category of expense.

Answer: Gross: $95,000 | Operating: $65,000 | Net: $48,750

Frequently Asked Questions

What is the difference between profit margin and markup?
Profit margin divides profit by revenue (selling price), while markup divides profit by cost. For the same transaction, markup is always a higher percentage than margin. For example, buying at $60 and selling at $100 gives a 40% margin but a 66.7% markup. The conversion formula is: Margin = Markup / (1 + Markup). This distinction matters in pricing negotiations, accounting, and financial reporting.
How do you calculate break-even point?
The break-even point in units equals your total fixed costs divided by the contribution margin per unit. The contribution margin is the selling price minus the variable cost per unit. For example, if fixed costs are $10,000, the price is $25, and variable cost is $10, then break-even = $10,000 / ($25 - $10) = 667 units. In revenue terms, multiply break-even units by the selling price.
What is a good profit margin?
Profit margins vary widely by industry. Grocery retailers typically achieve 1 to 3% net margins. Restaurants run at 3 to 9%. Manufacturing companies average 10 to 20%. Software and SaaS businesses often exceed 20% net margins, with gross margins above 80%. Always benchmark against your specific industry rather than using a universal target. A "good" margin is one that exceeds your industry average and covers your reinvestment needs.
What is the difference between gross and net profit?
Gross profit is revenue minus the direct cost of goods sold (materials, manufacturing, direct labour). Net profit is what remains after subtracting all expenses: operating costs, taxes, interest, depreciation, and any other charges. A business can have strong gross profit but weak net profit if overhead, debt, or taxes are high. Both metrics matter: gross profit reveals production efficiency, while net profit shows true bottom-line performance.
How do you calculate ROI?
ROI = (Net Gain / Investment Cost) times 100. Net gain is the total return minus the original investment. If you invest $10,000 and receive $15,000 back, your net gain is $5,000 and your ROI is 50%. Note that basic ROI does not account for time. A 50% ROI over one year is much better than 50% over five years. For time-adjusted comparisons, use annualised ROI.
What is contribution margin?
Contribution margin is the selling price minus the variable cost per unit. It represents how much each unit sold contributes towards covering fixed costs and, once those are covered, towards profit. If a product sells for $25 with $10 in variable costs, the contribution margin is $15. This figure is essential for break-even analysis, pricing decisions, and determining which products to prioritise in a multi-product business.
How does profit margin differ by industry?
Industries with high capital requirements or commodity products (grocery, agriculture, construction) tend to have low margins of 2 to 8%. Service businesses (consulting, legal, accounting) typically achieve 15 to 40% margins because they have minimal cost of goods. Technology companies, especially SaaS, often reach 20 to 30% net margins due to near-zero marginal costs. Luxury goods and pharmaceuticals can exceed 50% gross margins. Always compare within your sector.
What is operating profit?
Operating profit, also called EBIT (earnings before interest and taxes), is gross profit minus operating expenses such as rent, utilities, salaries, marketing, and administrative costs. It excludes interest payments and tax, making it useful for comparing the core operational performance of companies with different capital structures or tax situations. Operating margin (operating profit / revenue) is one of the most watched metrics in financial analysis.
How do you improve profit margins?
There are two fundamental levers: increase revenue per unit or decrease cost per unit. Specific strategies include: raising prices (test small increases and measure demand impact), negotiating better supplier terms, reducing waste in production, automating manual processes, improving product mix (selling more high-margin items), reducing customer acquisition costs through organic marketing, and increasing customer lifetime value through retention and upselling. Most successful businesses work on multiple levers simultaneously.
What is the break-even formula?
The break-even point in units = Fixed Costs / (Selling Price per Unit - Variable Cost per Unit). The denominator is the contribution margin. In revenue terms: Break-even Revenue = Break-even Units times Selling Price. For multi-product businesses, use a weighted average contribution margin based on your expected sales mix. The break-even formula assumes linear relationships between volume, costs, and revenue.

Related Finance Calculators

Related Articles