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.
Apply different commission rates by sales tier using IFS. Works in Excel 2019/365 and Google Sheets.
How-toCompute gross margin percentage as (price − cost) / price. Identical in Excel and Google Sheets.
How-toCompute a compounded future value with principal × (1 + rate)^years using POWER. Identical in Excel and Google Sheets.
How-toDivide total cost by total units to find cost per unit using a simple formula in Excel or Google Sheets.
How-toUse cost and target gross margin percentage to back-calculate the required selling price in Excel or Google Sheets.
How-toMultiply principal, rate, and time to compute simple interest using a straightforward formula in Excel or Sheets.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: