Skip to content
CalcTide logo
BusinessReviewed Methodology

Profit Margin Calculator

A profit margin calculator turns revenue and cost into two numbers that matter for pricing and planning: dollar profit and profit margin percentage. Enter total revenue for a period, enter the total cost tied to that same period, and the tool subtracts one from the other, then expresses the result as a percentage of revenue. It works for a single sale, a full month of a small business, or a single product line, as long as the revenue and cost figures cover the same activity and the same time window. Retailers use it to check whether a price still clears a target margin after a cost increase, freelancers use it to see what percentage of an invoice is actual profit after expenses, and managers use it to compare margin across products before deciding where to spend on marketing or inventory.

BusinessBy

Quick answer

Profit equals revenue minus cost, so a $10,000 sale with $7,500 in cost leaves $2,500 in profit.

What this tells you

  • •Profit equals revenue minus cost, so a $10,000 sale with $7,500 in cost leaves $2,500 in profit.
  • •Margin percentage shows profit as a share of revenue, not as a share of cost, which is the detail most people get backwards.
  • •A higher margin percentage means more of each revenue dollar stays as profit after covering the entered costs.
  • •The calculator accepts cost figures equal to revenue (0% margin) but rejects cost figures higher than revenue, since that scenario is a loss rather than a margin.
  • •Use results as business planning estimates. They reflect only the revenue and cost numbers you enter, not every expense a real business carries.

How to Use

  1. 1Enter total revenue for the period, product, or sale you want to evaluate. This should be the full amount billed or collected before any costs are subtracted.
  2. 2Enter total cost tied to that same period or sale. Include everything you want reflected in the margin, such as materials, labor, shipping, or platform fees, since the tool does not add anything automatically.
  3. 3Click Calculate to see estimated profit in dollars and profit margin as a percentage of revenue.
  4. 4Compare scenarios by changing one input at a time. Raise the price, lower the cost, or test a bulk discount to see how each change moves the margin percentage.
  5. 5If the result feeds into a quote, budget, or pricing decision, treat it as a starting estimate and confirm it against your actual accounting records before finalizing numbers.

How It Works

Formula

Profit = Revenue - Cost Profit Margin (%) = (Profit / Revenue) x 100

The calculator first finds profit by subtracting total cost from total revenue. It then divides that profit figure by revenue and multiplies by 100 to express the result as a percentage. Revenue must be greater than zero and cost cannot exceed revenue, since a cost higher than revenue represents a loss rather than a margin percentage. Cost can be zero, which produces a 100% margin, useful for checking pure-profit scenarios like a service with no direct cost inputs. The formula treats every dollar of revenue equally, so it does not distinguish between recurring revenue and one-time revenue unless you separate those figures before entering them.

Calculation note: values are processed in the order shown above, using the current input units.

Worked Examples

Simple margin estimate

Revenue$10,000
Cost$7,500
ResultEstimated profit: $2,500 | Estimated margin: 25%

A 25% margin means $0.25 of each revenue dollar remains after costs in this estimate. This is a common target range for many retail and light-manufacturing businesses.

Small transaction check

Revenue$500
Cost$350
ResultEstimated profit: $150 | Estimated margin: 30%

Profit is $500 minus $350, or $150. Dividing $150 by $500 and multiplying by 100 gives a 30% margin, showing that this sale clears a healthier margin than the first example despite a much smaller dollar amount.

Service business with low direct cost

Revenue$3,200
Cost$960
ResultEstimated profit: $2,240 | Estimated margin: 70%

A freelance or consulting invoice often carries low direct cost relative to revenue. Here, $3,200 in revenue against $960 in cost leaves $2,240 in profit, a 70% margin, which is typical for service work with minimal materials.

Wholesale product line

Revenue$85,000
Cost$61,200
ResultEstimated profit: $23,800 | Estimated margin: 28%

For a monthly product line total, $85,000 in revenue minus $61,200 in cost leaves $23,800 in profit, a 28% margin. This kind of monthly rollup is useful for comparing one product line against another using the same time window.

Thin-margin monthly total

Revenue$42,000
Cost$37,800
ResultEstimated profit: $4,200 | Estimated margin: 10%

A 10% margin on $42,000 in revenue leaves $4,200 in profit, which is thin enough that small cost increases or discounts can push the business toward breakeven. This example is a reminder to track margin trends, not just a single snapshot.

Pricing a candle batch for retail versus wholesale

Revenue$2,400
Cost$1,027.50
ResultEstimated profit: $1,372.50 | Estimated margin: 57.19%

Marisol pours 150 soy candles at $6.85 each in wax, wick, jar, and label, so the batch costs $1,027.50. Sold at $16 in her shop, the batch brings in $2,400 and leaves $1,372.50 in profit, a 57.19% margin. A gift store offers to take the whole batch at $9.60 a candle. Entering $1,440 in revenue against the same $1,027.50 cost drops profit to $412.50 and margin to 28.65%. The wholesale deal still clears her materials, but it does not cover her labor or shop rent, which she needs to add to the cost field before the comparison is fair.

Gross, Operating, and Net Margin: What Each Subtracts

The three margins on an income statement subtract progressively more from the same revenue. This calculator produces whichever one matches the cost you enter.

MetricFormulaSubtracts from revenueLeaves out
Gross margin(Revenue - COGS) / RevenueCost of goods sold: materials, direct labor, freight inOperating expenses, interest, income taxes
Operating marginOperating income / RevenueCOGS plus selling, general, and administrative expenses and depreciationInterest, income taxes, non-operating items
Pre-tax marginIncome before taxes / RevenueCOGS, operating expenses, interest, and other non-operating itemsIncome taxes
Net marginNet income / RevenueEvery expense line, including interest and income taxesNothing on the income statement
Markup (for contrast)(Price - Cost) / CostCost, then divides by cost instead of revenueNot a margin, so it can exceed 100%
This calculator(Revenue - Cost entered) / RevenueWhatever you type in the Cost fieldAnything you leave out of the Cost field

Line items follow the income statement order in SEC Regulation S-X (17 CFR 210.5-03): net sales, costs applicable to sales, selling, general and administrative expenses, interest expense, income tax expense, net income. Margins are computed with the formula above. Markup divides by cost, so a 30% margin equals a 42.86% markup and a 50% margin equals a 100% markup.

Margin versus markup, and gross versus net

Margin and markup describe the same $9.15 of profit on a $16 candle that cost $6.85, just from two directions. Margin divides profit by the selling price: 9.15 / 16 = 57.19%. Markup divides the same profit by cost: 9.15 / 6.85 = 133.58%. To convert one to the other, markup = margin / (1 - margin), so a 30% margin needs a 42.86% markup and a 50% margin needs a 100% markup. Setting a price from a markup figure when the target was a margin, or the reverse, is the most common way a price ends up too low.

Which margin you get depends on what goes in the Cost field. Enter only the cost of goods sold, meaning materials, direct labor, and freight in, and the result is gross margin. Add selling, general, and administrative expenses and you get operating margin. Add interest and income taxes and you reach net margin, the bottom line of an income statement (17 CFR 210.5-03 lists these line items in that order). Each step subtracts more from the same revenue, so gross margin is always the highest of the three and net margin the lowest.

Margin cannot pass 100% because profit can never be larger than the revenue it came from. With a $0 cost, profit equals revenue and margin is exactly 100%, which is why the calculator accepts a zero cost but rejects a cost above revenue. Markup has no ceiling because it divides by cost, and cost can be tiny. A $2 item sold for $20 carries a 90% margin and a 900% markup.

The calculator subtracts the cost you enter from the revenue you enter and nothing more. It does not allocate overhead, deduct returns and discounts, or apply taxes, and it does not follow the accounting rules that shape reported margins. Under GAAP, revenue is recorded net of discounts, refunds, and expected returns (FASB ASC 606), and inventory cost follows specific costing methods (FASB ASC 330), so a quick revenue-minus-cost entry can land a few points away from the gross margin on audited statements. Treat the result as a pricing estimate and confirm it against your books.

Work from cost with the markup calculator

Common mistakes

  • Mixing costs and revenue from different time periods, such as this month's revenue against last month's supply invoices.
  • Confusing margin with markup percentage. Margin divides profit by revenue, markup divides profit by cost, and the two numbers are never equal above 0%.
  • Assuming margin percentage guarantees net business profitability. A healthy margin on paper still needs enough sales volume to cover fixed costs like rent and salaries.
  • Leaving out real costs such as payment processing fees, shipping, returns, or platform commissions, which inflates the margin estimate above the true number.
  • Entering pre-tax and post-tax figures inconsistently across revenue and cost, which distorts the resulting margin percentage.
  • Treating a single month's margin as a permanent number instead of tracking it over several periods to catch trends early.

Limitations

This calculator estimates margin from the revenue and cost values you enter and nothing else. It does not allocate overhead, deduct returns, discounts, or refunds, or apply income taxes, financing costs, or non-operating items unless you fold them into the cost input yourself, so the result is a gross margin when you enter cost of goods sold and something closer to operating or net margin only when you add those expense lines in the order an income statement uses (17 CFR 210.5-03). It does not apply GAAP measurement rules, under which revenue is reported net of variable consideration such as discounts and expected returns (FASB ASC 606) and inventory cost follows a defined costing method (FASB ASC 330), and it does not adjust for currency, seasonality, or cash versus accrual accounting. Treat the output as a planning estimate to sanity-check pricing, not as a substitute for a profit and loss statement prepared from your books.

Embed this calculator on your site

Paste this code where you want the calculator to appear. It is responsive, mobile-friendly, resizes automatically, and is free to use as long as the credit line stays in place.

<script src="https://calctide.com/embed.js" data-tool="profit-margin-calculator" async></script> <p style="font-size:12px;margin:4px 0 0">Profit Margin Calculator by <a href="https://calctide.com/business/profit-margin-calculator/">CalcTide</a></p>

Preview the embed at /embed/profit-margin-calculator/.

Frequently Asked Questions

Margin is profit divided by revenue, while markup is profit divided by cost. On the same sale, margin is always a smaller number than markup once there is any profit at all, since revenue is a larger figure than cost.
Yes. If your cost input represents cost of goods sold only, such as materials and direct labor, the result functions as a gross margin estimate. Add operating expenses to the cost figure if you want a closer approximation of net margin instead.
No. The calculator only works with the revenue and cost numbers you enter. Add taxes, rent, salaries, or any other overhead into the cost field if you want those reflected in the margin percentage.
It depends heavily on the industry. Grocery and wholesale businesses often run margins in the single digits to low teens, while software and service businesses can run margins above 50% because direct costs are lower. Compare your margin against others in your specific industry rather than a single universal benchmark.
A cost figure above revenue means the transaction lost money rather than earned a margin, and margin percentage is not meaningful past that point. Track that scenario separately as a loss rather than trying to force a negative margin through this tool.
Yes. Enter the revenue and cost for that one sale exactly as you would for a monthly total. The formula works the same way regardless of whether the numbers cover one transaction or an entire quarter.
Profit margin is a percentage that shows how much of revenue remains as profit, while net income is a dollar figure on a full financial statement that accounts for every expense category, including taxes and interest. This calculator estimates a margin from whatever cost figure you enter, so it is only as complete as that input.
Use whichever basis matches your cost figures consistently, since mixing pre-tax revenue with post-tax cost, or the reverse, produces a margin that does not reflect either basis accurately. Most operational margin checks use pre-tax figures for both inputs.
Margin percentage is sensitive to small changes because it divides profit by revenue, and a price increase raises the numerator and the denominator at the same time. Recalculate after any price or cost change rather than assuming the margin shift is proportional to the price change alone.
It estimates profit margin calculator outputs using the visible inputs and formula assumptions on this page.

Explore More in Business