Profit Margin vs. Markup: Convert a Cost into the Right Price

Calculate margin and markup, reverse a target percentage into a price, and see how discounts change your profit.

Start with the denominator

Use cost and selling price for the same unit, project, or package. Then calculate:

  • Profit = selling price − cost.
  • Margin = profit ÷ selling price × 100.
  • Markup = profit ÷ cost × 100.

In the $80-cost example, profit is $120 − $80 = $40. Dividing by $120 gives one-third of revenue. Dividing by $80 gives one-half of cost. Neither calculation changes the $40 earned.

This distinction matters when someone builds a quote using markup and later reports that percentage as margin. A 50% markup does not mean you keep half of the selling price after the stated costs.

Work backward from your target

To price from a target margin, use:

Selling price = cost ÷ (1 − margin as a decimal).

For a markup, use:

Selling price = cost × (1 + markup as a decimal).

The following worked comparisons all start with $80 of cost:

Pricing instruction Calculation Selling price Resulting margin
Add 25% markup $80 × 1.25 $100.00 20.00%
Earn 25% margin $80 ÷ 0.75 $106.67 Approximately 25.00%
Add 50% markup $80 × 1.50 $120.00 33.33%
Earn 50% margin $80 ÷ 0.50 $160.00 50.00%

Keep full precision during the calculation and round the final price. If a target is a strict minimum, rounding up to the next cent prevents a small shortfall.

Decide what “cost” includes

For a product, your chosen cost might include materials, packaging and production labor. For a project, it might include subcontractors, purchased assets and an internal allowance for your delivery time. Write down the components before comparing jobs.

If you exclude overhead and owner compensation, the result is a contribution toward those obligations. Calling it complete net profit would overstate what is available to spend. Conversely, do not count the same labor or software allocation twice.

Percentage-based selling fees need special care because changing price changes the fee. If fixed costs are $80, a hypothetical selling fee is 5% of price, and the desired margin after that fee is 25%, solve:

Price = $80 ÷ (1 − 0.05 − 0.25) = $114.2857, or $114.29 rounded up.

This is an illustrative fee assumption, not a quoted platform rate.

Check discounts before offering them

At $120 with $80 cost, profit is $40. A 10% price discount makes the price $108 and profit $28. Revenue falls 10%, but profit falls 30%. The new margin is $28 ÷ $108 = 25.93%.

Use this check when comparing a discount with an alternative such as fewer deliverables or a smaller package. The amount of profit you give up can be much larger than the advertised discount percentage.

The margin and markup calculator supports cost-and-price inputs and a reverse target-margin mode. For a cost-based quote, continue with cost-plus pricing. Zero cost makes markup undefined; zero selling price makes margin undefined. A 100% target margin cannot be reached with positive cost at a finite price.

FAQ

How do I convert markup to margin?

Express markup as a decimal and divide it by one plus that decimal. A 50% markup gives 0.50 ÷ 1.50 = 33.33% margin.

Does the calculator result equal my net profit?

Only if your cost input includes all costs appropriate to that profit measure. If labor, overhead or selling fees are missing, the result is before those costs.

Estimates only. This article is educational and is not financial, tax, investment, or legal advice. Verify rates and rules with primary sources or a licensed professional. Disclaimer · Verification policy.