Markup Calculator

Choose which pricing value is unknown, then enter the other two. The calculator keeps markup against cost separate from gross margin against selling price and reports the complete solved pricing set.

Inputs

Instant calculation

Required
x ≥ 0.01
%x ≥ 0

Result

Instant calculation

Cost
100.00
Selling price
125.00
Gross profit
25.00
Gross margin
20 %
Markup
25 %

How to use this calculator

Enter the value to calculate and any two of unit cost, selling price, and markup percentage.

Review which costs are included, whether percentages are markup or margin, tax treatment, discounts, and currency consistency.

Read solved cost, selling price, gross profit, gross margin percentage, and markup percentage.

Formula

Selling price = cost × (1 + markup rate); markup = (selling price − cost) ÷ cost; cost = selling price ÷ (1 + markup rate). Margin = profit ÷ selling price.

Worked example

A $60 cost with 25% markup gives a $75 price, $15 gross profit, and a 20% gross margin.

Reference guide

Formula details and result guidance

Follow the variables, derivation, precision rule, and worked cases below to reproduce the calculation independently.

Variables

Formula variables, units, and roles
SymbolMeaningUnitRole
CUnit costcurrencyInput
PSelling pricecurrencyInput
GGross profitcurrencyOutput
mPrice markup percentage% of costOutput
gGross profit margin percentage% of selling priceOutput

Derivation

  1. Gross profit is the spread between price and cost: G = P − C.
  2. Price markup percentage divides gross profit by cost: m = G ÷ C × 100%; gross profit margin percentage divides gross profit by selling price: g = G ÷ P × 100%.
  3. When solving from price markup percentage, P = C × (1 + m); when solving from gross profit margin percentage, P = C ÷ (1 − g).

Rounding and precision

Calculations retain full decimal precision. Currency results display 2 decimal places. Price markup percentage and gross profit margin percentage each display 2 decimal places. Values near a 100% target gross profit margin are rejected because the selling price would be unbounded.

Worked and boundary examples

Worked example

$40 cost, $50 price

Input
C = $40; P = $50
Output
Gross profit $10; price markup 25%; gross profit margin 20%

Price markup percentage and gross profit margin percentage use different denominators.

Worked example

Price from cost-based markup

Input
C = $80; price markup = 30%
Output
P = $104

Multiply cost by 1.30 to obtain the selling price.

Boundary case

Break-even sale

Input
C = $25; P = $25
Output
Gross profit $0; price markup 0%; gross profit margin 0%

A zero profit is valid and distinct from a missing cost or price.

Common mistakes

  • Using price markup percentage and gross profit margin percentage interchangeably even though their denominators differ.
  • Leaving shipping, transaction fees, or variable labor out of the entered unit cost.
  • Using a 100% margin target, which cannot be reached with a finite positive price and cost.

How to interpret the result

Price markup percentage describes gross profit relative to cost; gross profit margin percentage describes gross profit relative to revenue. Neither result is net profit unless all operating expenses and taxes are included elsewhere.

Scope

Appropriate for

  • Comparing a unit selling price with its included unit cost.
  • Translating a target price markup percentage or gross profit margin percentage into an indicative price.

Do not use for

  • Forecasting net income without overhead, tax, and volume assumptions.
  • Setting regulated or contractually controlled prices.

Next tools in the workflow

Evidence and sources

Assumptions and limits

  • The model treats cost as the complete positive cost basis and excludes tax, overhead, returns, and transaction fees unless already included.
  • Markup Calculator treats the entered values as estimates and does not infer missing project, account, or personal details.
  • Calculations retain working precision except where the cited method requires an intermediate rounding step; displayed values are then formatted separately. Source rules and dated rates must be rechecked when they change.

Sources

Related calculators

Verification

How this calculator is checked

Trust comes from reproducible evidence, not model confidence. You can inspect the formula, assumptions, worked example, and cited sources on this page.

Frequently asked questions

How does the Markup Calculator work?

Selling price = cost × (1 + markup rate); markup = (selling price − cost) ÷ cost; cost = selling price ÷ (1 + markup rate). Margin = profit ÷ selling price.

What information should I enter in the Markup Calculator?

Enter the value to calculate and any two of unit cost, selling price, and markup percentage, then verify which costs are included, whether percentages are markup or margin, tax treatment, discounts, and currency consistency.

What should I verify before using this Markup Calculator result?

The model treats cost as the complete positive cost basis and excludes tax, overhead, returns, and transaction fees unless already included.

Last updated 2026-08-25 · solve-any-two-v2 · content-2026-08-14 · Published by YunFanLabs