Markup Calculator
Calculate markup and margin from cost and selling price. Markup divides profit by cost; margin divides by price.
Enter values to calculate.
Formulas
Core equations used by this calculator.
How to use
Follow these steps for a clear answer.
Enter the known values
Fill in each field with amounts and rates as labeled.
Calculate
Results update as you type; compare scenarios below when available.
Read the outputs
Check the result panel for the primary figure and supporting totals.
Example calculations
Common configurations with formula and result.
Worked example
Cost 40 · Price 55 → markup 37.5% · margin ≈ 27.27%
Markup calculator specification
Version 1.0.0 · Last reviewed 2026-07-28
- Definition
- Markup = (price − cost) / cost. Margin = (price − cost) / price. The same dollar profit yields a higher markup than margin.
- What it calculates
- Markup %, margin %, and profit.
- Inputs
- Values shown on the calculator form
- Outputs
- Primary result in the result panel
- Formula
Markup = (price − cost) / cost; Margin = (price − cost) / priceAbout this calculator
Markup = (price − cost) / cost. Margin = (price − cost) / price. The same dollar profit yields a higher markup than margin.
Formula
Markup = (price − cost) / cost; Margin = (price − cost) / priceExample
Cost 40 · Price 55 → markup 37.5% · margin ≈ 27.27%
- Assumptions
- Fixed rates and terms as entered; no fees or taxes unless modeled.
- Calculation runs locally in the browser.
- Units
- Currency units as entered (dimensionless rates in %)
- Boundary conditions
- Zero or missing required fields yield zero or empty results.
- Negative inputs are treated as zero.
- Example
- Cost 40 · Price 55 → markup 37.5% · margin ≈ 27.27%
- Validation cases
- 40 → 55 → markup 37.5%
- 100 → 100 → markup 0%
- 50 → 100 → markup 100% · margin 50%
- Sources
- Standard time-value-of-money / managerial accounting identities
- Last reviewed
- 2026-07-28
- Calculation version
- 1.0.0
Related tools
Frequently asked questions
Key distinctions behind the calculation.
How does the Markup Calculator work?
It uses Markup = (price − cost) / cost; Margin = (price − cost) / price. All math runs locally in your browser.
Can I share my inputs?
Yes. Use Copy link in the result panel — the URL stores your current inputs.