Pricing and profitability

Margin and Markup Calculator

Find the selling price, profit, and markup required to achieve a target gross margin on selling price.

Pricing inputs

Cost and target margin

Pricing
%
Pricing summary

Selling price, markup, and profit

Your pricing results will appear here

Enter a positive cost and a target margin below 100%.

What Is the Difference Between Margin and Markup?

Margin measures profit as a share of selling price, while markup measures profit as a share of cost. This Margin and Markup Calculator starts with a positive cost and a target gross margin, then finds the selling price, profit per sale and equivalent markup.

The percentages differ because their denominators differ. University of Maine Cooperative Extension: basic pricing strategies explains that distinction in its retail pricing section. This form sets a price from a margin target; it does not calculate a target from demand or decide what customers will pay.

How to Set a Price from Cost and Target Margin

  1. Enter Product or service cost for one clearly defined sale unit. Prepare the relevant cost basis first and avoid mixing a unit cost with a price for a whole batch.
  2. Choose the cost currency. Enter Target gross margin as a percentage, such as 25 for 25%, rather than as a decimal fraction.
  3. Calculate and read Required selling price with Equivalent markup and Profit per sale. These describe the same price scenario on different bases.
  4. Review any tax, payment fees, discounts, overhead or other expenses outside the supplied cost. If those expenses matter to the intended margin, prepare an appropriate consistent cost/price model before using the result.

Cost must be positive and no greater than one quadrillion. Target margin may be zero but must stay below 100%; the visible maximum is 99.999999%. The visible positive cost minimum is 0.000001. Inputs too close to a numeric boundary to preserve positive cost or a positive price denominator are rejected.

PKR, USD, EUR and CAD are currency labels, not exchange conversions. This version excludes loss-margin scenarios and zero cost. A 100% margin with positive cost has no finite selling price under the equation, so it cannot be obtained by entering a slightly different label or currency.

Selling Price, Profit and Markup Formulas

Decimal target margin m = margin percentage ÷ 100

Required selling price P = cost C ÷ (1 − m)

Profit per sale G = P − C

Equivalent markup percentage = G ÷ C × 100

Price-to-cost multiple = 1 ÷ (1 − m)

Margin uses G/P, whereas markup uses G/C. Rearranging margin = (P−C)/P gives the required-price equation. Multiplying cost by 1 + margin instead would treat the entered percentage as a markup and usually miss the intended margin.

The endpoint calculates from the original inputs and independently rounds price, profit and markup to two decimals. The chart uses original cost and the unrounded model profit; its centre shows the returned rounded price. Supporting cost and target-margin cards also round for display.

The price-to-cost multiple uses the original target margin, not rounded price divided by a sub-cent cost. Rounding the selling price to currency precision can slightly change the margin actually achieved in a sale. Check the chosen transaction price when the cost is small or the target needs strict precision.

Cost, Target Margin and Pricing Results

Cost C
Positive prepared amount per sale unit in the selected currency.
Target margin m
Desired gross profit share of selling price, entered as a percentage below 100.
Required price P
Featured theoretical selling price, rounded to cents; not a demand forecast.
Equivalent markup
Featured profit/cost percentage for the same modelled price.
Profit per sale
Price less the entered cost, before omitted costs or taxes.
Cost and margin references
Original entered assumptions, rounded for display.
Price multiple and chart
Unrounded factor 1/(1−m), plus original cost and model profit; chart components precede cent rounding.

Margin and Markup Calculation Example

Illustrative example. An item costs USD 96 and the seller targets a 25% gross margin on the selling price.

Decimal margin is 0.25. Required price = 96 ÷ 0.75 = USD 128. Profit per sale is USD 32 and markup is 32 ÷ 96 × 100 = 33.3333…%, displayed as 33.33%. The price-to-cost multiple is 1.3333×.

If the seller instead adds a 25% markup, price is only USD 120. Profit is USD 24 and the margin is 24 ÷ 120 × 100 = 20%. The same percentage number does not produce the same price when its denominator changes.

Calculation check. These illustrative values were checked independently against the formula and calculator response. Retain unrounded intermediate values when checking approximations.

Margin and Markup Calculation Example
MeasureCalculationResult
Required selling price96 ÷ (1 − 0.25)USD 128
Profit per sale128 − 96USD 32
Target margin32 ÷ 128 × 10025%
Equivalent markup32 ÷ 96 × 10033.33%

Margin vs Markup at the Same Cost

Use the same cost to see why the denominator matters. The hypothetical USD 96 cost below needs a price of USD 128 for a 25% margin, but only USD 120 for a 25% markup.

These are alternative pricing scenarios. The form accepts a margin target; it does not accept markup as an alternative input. Check any discount against the final transaction price before claiming the original target was achieved.

Margin vs Markup at the Same Cost
ScenarioSelling price / profitMargin / markup
25% target marginUSD 128 / USD 3225% / 33.33%
25% markup on costUSD 120 / USD 2420% / 25%
Zero margin or markupUSD 96 / USD 00% / 0%

How to Use the Required Selling Price

A 25% margin allocates one quarter of selling price to the difference between price and the entered cost. It does not add 25% to cost. In the example, a 25% margin requires a 33.33% markup, because profit is compared with a smaller cost denominator.

At zero margin, modelled price equals cost and profit and markup are zero. As the target approaches 100%, the required price rises sharply. That arithmetic sensitivity does not establish that the business can sell at such a price.

Use the result as a pricing scenario and compare it with full costs, the actual sale price and the product’s market context. A discount applied after setting the price reduces the achieved margin unless other assumptions change. Gross profit before omitted expenses is not the same as take-home or net business profit.

Common Margin and Markup Mistakes

  • Using margin and markup as interchangeable percentages.
  • Entering 0.25 for a target of 25%.
  • Multiplying cost by 1.25 when the goal is a 25% selling-price margin.
  • Comparing a batch cost with a single-item selling price.
  • Calling the price-cost difference net profit despite omitted expenses.
  • Checking a precise target only from rounded sub-cent amounts.

Frequently Asked Questions

How do I calculate price from cost and target margin?

Divide cost by one minus the decimal margin. For a 25% target, divide cost by 0.75. The target must stay below 100% with positive cost.

Why are margin and markup different?

Margin divides the price-cost difference by selling price, while markup divides it by cost. The same profit amount therefore produces different percentages.

Is a 25% margin the same as a 25% markup?

No. At a cost of 96, a 25% margin needs a price of 128. A 25% markup gives a price of 120 and a margin of 20%.

Can I use a 100% margin?

No. With positive cost, the price denominator becomes zero at 100%, so there is no finite selling price under this equation.

Does the profit card include all business expenses?

Only the cost you supplied is deducted from the theoretical price. Omitted overhead, fees, discounts and taxes are not automatically added, so the result is not necessarily net profit.

Can this form calculate a negative margin?

No. It accepts targets from zero up to but excluding 100%. Loss pricing requires a different input model rather than entering a false positive target.

Why might the actual cent-rounded price miss my precise target?

The service rounds money to two decimals. That rounding can change the achieved margin, especially with a very small cost. Check the actual transaction price and original cost.

What does the price-to-cost multiple mean?

It is 1 divided by one minus the decimal target margin. Multiplying original cost by that unrounded factor gives the theoretical price before cent rounding.

Sources and References