Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=B2/(A2-B2)Computed by a real spreadsheet engine on the sample data below.
| Cost Price | Selling Price | Margin | Markup |
| 100 | 150 | =B2/(A2+B2) | =B2/A2-1 |
=B2/(A2-B2)→-3
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.
Markup is the percentage increase from the cost price to the selling price, while margin is the percentage of the selling price that is profit.
Yes, the formulas are currency-neutral and will work for any currency as long as the cost and selling prices are in the same currency.
If your cost price is higher than your selling price, your margin and markup calculations will show negative values, indicating a loss on each unit sold.
Calculate a compounded closing balance from principal, annual nominal rate, compounding frequency and years, then separate the interest earned.
How-toConvert a positive nominal annual rate and a whole-number compounding frequency into an effective annual rate with EFFECT.
How-toDivide fixed costs by unit contribution margin and round up to whole units, with an explicit message when the margin is nonpositive.
How-toApply different commission rates by sales tier using IFS. Works in Excel 2019/365 and Google Sheets.
How-toCalculate take-home (net) pay by subtracting every deduction from gross salary, with worked examples for fixed amounts, percentage tax, and slab-based tax. Excel and Google Sheets.
How-toCompute gross margin percentage as (price − cost) / price. Identical in Excel and Google Sheets.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: