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.
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
- 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.
- 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.
- 3Click Calculate to see estimated profit in dollars and profit margin as a percentage of revenue.
- 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.
- 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 100The 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
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
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
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
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
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.
Target Margin vs Required Markup
How a target profit margin translates into cost share of revenue and the markup percentage needed on cost to hit that margin.
| Target margin | Cost as % of revenue | Markup needed on cost |
|---|---|---|
| 10% | 90% | 11.11% |
| 20% | 80% | 25.00% |
| 25% | 75% | 33.33% |
| 30% | 70% | 42.86% |
| 40% | 60% | 66.67% |
| 50% | 50% | 100.00% |
Margin and markup use different denominators, so a 50% margin requires a 100% markup on cost, not a 50% markup.
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 using only the revenue and cost values entered. It does not automatically include taxes, overhead allocation, financing costs, refunds, or non-operating expenses unless you add them into the cost input yourself. It also does not adjust for currency conversion, seasonal variation, or accounting methods such as accrual versus cash basis. Treat the output as a planning estimate to sanity-check pricing and cost decisions, not as a substitute for a full profit and loss statement prepared with your actual books.
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="profit-margin-calculator" async></script>Preview the embed at /embed/profit-margin-calculator/.