Business finance · Step-by-step field guide · Updated 28 October 2026
Margin and markup describe the same profit using different denominators. Confusing them can produce a selling price that misses your intended margin. Work from revenue and cost to a correct price, then test what discounts and omitted expenses do to the result.
What you’ll be able to do
- Calculate gross profit, margin and markup from one example.
- Solve for a selling price at a target margin.
- Distinguish a product’s gross profit from the business’s net profit.
Read in order for a complete walkthrough, or jump directly to the part you need. No enrollment or completion requirement.
Before you start
Have a recent statement, a written goal or the relevant price and cost figures beside you. The input table below defines the example exactly. Replace these inputs with your own only after you understand the assumptions.
| Input | Example assumption |
|---|---|
| Selling price per unit | 100 USD |
| Direct cost per unit | 60 USD |
| Gross profit per unit | 40 USD |
| Baseline scope | One unit; no refunds, tax or additional overhead in the first calculation |
| Definitions | Margin uses revenue; markup uses cost |
Amounts are in USD for illustration. They do not automatically convert when you change the site’s currency selector. Product terms, fees and disclosure rules can differ by country. The mathematics here is general; linked U.S. regulatory explanations are identified by their source.
The process, step by step
01. Use a consistent revenue figure
Start with the amount earned from selling the item under the accounting definition you are using. Discounts and returns can reduce net revenue. Taxes collected on behalf of an authority should not casually be treated as the business’s own profit.
For the simple illustration, revenue is 100 per unit. If comparing different months or products, use the same treatment of discounts, returns, taxes and transaction charges throughout.
02. Specify which costs you are subtracting
The baseline direct cost is 60, leaving gross profit of 40. Record what the 60 includes, such as purchase or production costs under your accounting policy. A cost definition is part of the calculation, not a footnote to ignore.
Rent, administration, marketing, interest and income tax are not automatically included in gross profit. If you want net margin, use net income and the matching revenue period instead of calling gross profit net profit.
03. Divide profit by revenue for margin
Gross margin = (revenue − direct cost)/revenue. Here 40/100 = 40%. The question is: of each unit of sales revenue, what share remains after the stated direct cost?
The denominator is the selling amount. A 40% margin does not mean adding 40% to cost. It means profit occupies 40% of the final selling price.
04. Divide profit by cost for markup
Markup = (revenue − direct cost)/direct cost. Here 40/60 ≈ 66.67%. The question is: how large is the added amount relative to the cost base?
Both percentages describe the same 40 profit. They differ because one divides by 100 and the other by 60. Always write the denominator when communicating a target to another person.
05. Solve backwards for a target price
For target margin m, price = cost/(1−m). At cost 60 and margin 40%, price = 60/0.60 = 100. Simply adding 40% to 60 produces 84, whose profit is 24 and whose margin is only 24/84 ≈ 28.57%.
A target margin below 100% and a positive cost produce a finite positive price in this simple model. A 100% target with positive cost cannot be achieved by a finite price.
06. Stress-test discounts and operating costs
A 10% discount takes the 100 selling price to 90. With unchanged direct cost of 60, gross profit falls to 30 and margin to 33.33%. The 10% price cut reduces gross profit per unit by 25%, from 40 to 30.
Before setting prices, add a separate view of overhead, sales volume, returns and transaction costs. A mathematically correct gross margin does not establish that the business as a whole is profitable or that customers will accept the price.
Worked example: follow the numbers
| Target margin | Price at 60 cost | Gross profit | Required markup |
|---|---|---|---|
| 20% | 75.00 | 15.00 | 25.00% |
| 30% | 85.71 | 25.71 | 42.86% |
| 40% | 100.00 | 40.00 | 66.67% |
| 50% | 120.00 | 60.00 | 100.00% |
Algebra checks the relationship. Let markup u = profit/cost. Price = cost × (1+u), so margin = u/(1+u). Reversing this gives markup = margin/(1−margin). Enter percentages as decimals in these equations.
Charts, composition and supporting data
Zero-based scale. Source: FinMathly calculations using the hypothetical inputs in this guide; these are not market data.
- Direct cost: 60.00 (60.0%)
- Gross profit: 40.00 (40.0%)
Total: 100.00 USD. Each slice is part of this one total. Source: FinMathly calculation from the stated example; rounding may affect displayed percentages.
The price chart holds unit cost constant, so increasing the target margin requires a progressively larger price. The pie uses revenue as its whole and therefore visualizes margin directly. Markup is not a slice of this revenue pie: its denominator is the 60 cost base.
Turn the calculation into a plan
- Before quoting
Define cost, net revenue and the type of margin you intend to measure.
- When setting the price
Calculate the target price and reverse-check its margin; include rounding rules.
- Before a promotion
Recalculate profit per unit after the proposed discount and estimate the extra volume needed.
- Each reporting period
Reconcile projected gross profit with actual sales, returns and the full income statement.
Watch the video companion
This Khan Academy video places profit in the wider accounting picture. Use it to connect the product-level calculation here with financial statements; the margin and markup formulas are worked through separately above.
Balance sheet and income statement relationship · Khan Academy. Watch on YouTube if the embedded player is unavailable. Captions and playback controls are provided by YouTube.
Watch with this question in mind: Why is profit over a period different from the cash or assets held at one date?
Try it with one changed assumption
Find the volume needed after a discount
At price 100 and cost 60, ten units produce 400 gross profit. After cutting price to 90, how many whole units produce at least 400 gross profit?
Reveal the calculation and explanation
Each discounted unit contributes 30 of gross profit. 400/30 = 13.33 units, so at least 14 whole units are needed. That is 40% more units than ten; this ignores capacity changes, additional selling costs and any fixed-cost effects.
First reproduce the guide’s baseline. Then change one input, record the result, and explain why it moved. Keep the input values beside any result you save or share.
Common mistakes and how to catch them
| Mistake | What to do instead |
|---|---|
| Adding a margin percentage directly to cost | Use cost/(1−margin), or explicitly choose a markup formula. |
| Calling gross profit net profit | Subtract the other relevant expenses before making a net-profit claim. |
| Averaging product margins without weighting | For a combined margin, divide total profit by total revenue. |
| Ignoring zero denominators | Margin is undefined at zero revenue; markup is undefined at zero cost. |
Questions answered
Can a margin be negative?
Yes. When direct cost exceeds revenue, gross profit and gross margin are negative. A pie chart is inappropriate for presenting negative components as ordinary shares of a positive whole.
Can markup exceed 100%?
Yes. If profit is larger than cost, markup exceeds 100%. For example, cost 20 and price 60 give markup 200% and margin 66.67%.
How do I combine products with different margins?
Add their profits and divide by their combined revenue. A simple average of margin percentages can mislead when sales volumes or prices differ.
Sources, evidence and calculation notes
The sources below support the concepts and definitions. The worked examples, graphs and chart datasets are original FinMathly calculations from the stated hypothetical inputs; they are not observed market returns, current quotes or evidence of a promised outcome.
- SEC — Beginners’ guide to financial statements — Primary-source explanation of income statements, expenses and profit measures.
- Khan Academy — Gross and operating profit — Companion explanation of how different expense categories lead to different profit measures.
Methodology: formulas and assumptions are shown beside each example. Calculations retain full precision internally and display rounded values. Tables provide the numerical data behind the visuals. Video content belongs to its original publisher and is embedded through YouTube; it does not imply endorsement of FinMathly.