# Margin & Markup Calculator Turn cost and price into profit, margin and markup — or work backwards from a target margin or markup. Runs entirely in your browser. ### How it works **Profit** is price minus cost. **Margin** is profit as a percentage of the *selling price*; **markup** is profit as a percentage of the *cost* — the two are often confused. Working backwards, price = cost ÷ (1 − margin) for a target margin, or cost × (1 + markup) for a target markup. All computed on your device. ## Related tools - [Compound Interest Calculator](compound-interest.html) — With Contributions - [Loan & EMI Calculator](loancalculator.html) — OCXLY - [Percentage Calculator](percentage-calculator.html) — Percent Of, Change, Increase --- *Source: [ocxly.com/margin-markup-calculator.html](https://ocxly.com/margin-markup-calculator.html) — OCXLY, free 100% client-side privacy-first tools. Free margin and markup calculator. Turn cost and price into profit, margin and markup, or work backwards from a target margin or markup, entirely in your browser.*