Margin Calculator (Classic)
The Margin Calculator (Classic) measures the gross margin you actually achieved from a known cost and revenue. Enter the direct cost of an item, order, job, or service, then enter the revenue or pre-tax selling price. The main result is gross margin. The result panel also shows gross profit, markup on cost, cost share of revenue, and the revenue-to-cost multiple.
This page is intentionally narrow. It does not ask for a desired margin and it does not solve for price. It is an audit tool for a completed or proposed transaction where cost and revenue are already known. If you need to set a price from a target margin, use the margin calculator. If you think in cost-plus terms, compare the markup calculator. If a quote includes taxes collected from customers, keep those amounts separate with the sales tax calculator or vat calculator before measuring margin.
What the calculator does
The calculation method is direct. It converts cost and revenue to numbers, requires both to be positive, subtracts cost from revenue to get gross profit, and divides that profit by revenue to get gross margin. It also divides profit by cost to calculate markup, divides cost by revenue to calculate cost share, and divides revenue by cost to show the revenue-to-cost multiple.
The calculator accepts cases where cost is greater than revenue. That produces negative profit, negative margin, negative markup, and a revenue-to-cost multiple below one. Those results are not errors; they are useful warnings. They show that the sale did not cover the direct cost entered.
Formula
Gross profit is:
Gross margin is:
Markup is shown for comparison:
Cost share is:
The revenue-to-cost multiple is:
Checking a margin calculator (classic) scenario
Use the default values in the inputs: $65 cost and $100 revenue. The calculator first finds gross profit:
Then it calculates gross margin:
The equivalent markup is:
Cost share is:
The revenue-to-cost multiple is 1.538×, because $100 divided by $65 equals about 1.538. The primary result is 35% gross margin, and the note matches the calculation method: $100 revenue less $65 cost leaves $35, so the classic gross margin is 35%.
Use cases for achieved margin
Use this calculator after a sale closes, when reviewing a quote before approval, or when cleaning up product profitability data. A retailer might compare the margin on several SKUs after freight and packaging are included in cost. A contractor might enter labor and material cost for a job and compare it with billed revenue. A software or service team might use project delivery cost and contract revenue to estimate gross margin before overhead.
The cost input should include the direct costs you want the margin to cover. For a product, that may include purchase cost, inbound freight, packaging, payment processing, waste, and returns allowance. For a service, it may include billable labor, subcontractors, travel, and project-specific software. If you omit meaningful direct costs, the calculator will overstate the achieved margin.
Caveats and interpretation
Gross margin is not net margin. This calculator stops before rent, salaried administration, marketing, insurance, interest, income taxes, and other overhead. A product can have a positive gross margin and still fail to support the business if overhead is too high or sales volume is too low.
Margin also depends on clean revenue. Do not include sales tax, VAT, refundable deposits, reimbursed expenses, or other pass-through amounts unless the purpose is a special internal analysis. Those amounts can make revenue look larger without increasing gross profit. If discounts or credits reduce what you keep, enter the net revenue after those reductions.
Finally, use the label “margin” only when profit is divided by revenue. Dividing profit by cost gives markup. The classic markup page can solve for missing price, cost, or markup, while this classic margin page simply audits a known cost and revenue pair. That narrower workflow is what makes it useful for quick checks and consistent reporting.
For recurring analysis, keep the cost definition consistent. A monthly product dashboard is much more useful when every product includes the same cost categories. Mixing landed cost for one SKU with supplier invoice cost for another makes the margin comparison misleading. The calculator cannot know which costs belong in your model, but it makes the consequence visible: every extra dollar of direct cost lowers gross profit, lowers gross margin, increases cost share, and reduces the revenue-to-cost multiple.
If you are reviewing many deals, sort the results by margin and by dollar profit. A low-margin sale with high revenue may still contribute meaningful dollars, while a high-margin sale with tiny volume may not move the business. This page gives the percentage view and the dollar view together so neither signal is lost.
Sources
- Corporate Finance Institute, Gross margin — gross margin definition and formula.
- AccountingTools, Gross margin — explanation of gross margin analysis and interpretation.
- AccountingTools, Markup definition — markup formula used for comparison with margin.