Business planning & pricing · Calculation notebook

Markup and margin calculator: formulas, examples and mathematical principles

Learn the inputs, formula and worked example behind the Markup and margin calculator, including ratios: the denominator changes the meaning, result interpretation, assumptions and sources.

Open calculator By Toolify · Updated

Purpose and steps

The Markup vs Margin & Selling Price Calculator calculates selling price from markup and the price required for a target margin. Start with the defined inputs and their units, then use the equation and numerical example below to check the model. Tax tools use a simplified stated-year scenario, not a complete tax return.

  1. Confirm currency and monthly versus annual amounts. U.S. tax and loan models should be used within their stated scope.
  2. Prepare Unit cost, Markup on cost, Target gross margin. Defaults demonstrate the model rather than your personal circumstances.
  3. Check the headline result and its components. A key interpretation for this tool is: Convert margin and markup instead of treating their percentage labels as interchangeable.
  4. Compare the baseline with a changed scenario: Check whether cost includes shipping, packaging and selling fees before setting a price.

Input reference and units

These values reproduce the model’s demonstration. Replace them with your own records or measurements; they are not recommended targets.

On a small screen, swipe the table horizontally to see all columns.

Parameters used by this calculator
ParameterDemonstration valueHow to enter it
Unit cost40 USDUse dollars and the monthly or annual period stated in the field label; do not enter thousands of dollars.
Markup on cost50 %Enter a percentage such as 6.5, not 0.065. The equation converts it to a decimal.
Target gross margin40 %Enter a percentage such as 6.5, not 0.065. The equation converts it to a decimal.

Model-specific method

How this calculator produces its result

For cost C and markup u, selling price P=C(1+u), profit=P−C and margin=(P−C)/P. A target margin m instead requires P=C/(1−m). Here u and m are decimals: 50% markup is u=0.5.

Ratios: the denominator changes the meaning

A percentage has no useful meaning without its denominator. A $50 profit on $150 sales is a 33.33% margin, but the same profit on $100 cost is 50% markup. Changing the denominator changes the question, not the dollars earned. The same distinction applies to return on invested cash, return on property value and debt as a share of income.

An average of rates should normally reflect exposure. With loans of different sizes, use balance weights rather than averaging APR labels. A zero denominator yields an undefined ratio, not evidence of zero risk. Compare ratios only when the numerator, time period and accounting conventions match.

Ratio = numerator / denominator
Margin = profit / revenue
Markup = profit / cost
Weighted average = Σ(weight × value) / Σweight
  • Numerator: the part being measured
  • Denominator: the reference base
  • Percentage: ratio × 100
  • Weights: nonnegative quantities such as debt balances

Worked example

A $100 cost with 50% markup gives a $150 price, $50 gross profit and 33.33% margin. A 50% target margin requires a $200 price instead. A 100% target margin has no finite price for positive cost.

Reproduce the default scenario

This is a separate example, calculated using the exact engine on the tool page and the defaults in the input reference above. Health examples use metric units. Displayed rounding may differ from intermediate precision.

Selling price from markup
60 USD
Unit gross profit
20 USD
Gross margin from markup
33.33%
Price for target margin
66.67 USD
Gross profit at target margin
26.67 USD

Reading results without overstating them

  • Convert margin and markup instead of treating their percentage labels as interchangeable.
  • Check whether cost includes shipping, packaging and selling fees before setting a price.

Assumptions and exclusions

  • Demand elasticity, volume discounts, taxes and per-sale platform fees are excluded unless included in entered cost.
Test a changed assumption in the calculator

Sources and content notes

Toolify describes the implemented algorithm and its assumptions. Sources below support the topic or applicable rules; they do not endorse this calculator. Examples are illustrative, and published rules take precedence over simplified estimates.

Report a formula, example or translation issue through our contact page. Include the tool name, inputs and expected result so it can be reproduced. Contact Toolify