A markup vs margin calculator can help you set prices consistently, compare wholesale and retail offers, and test discounts without overstating profit. This guide explains the difference between markup and margin, shows the formulas with worked examples, and provides a repeatable pricing worksheet you can revisit whenever costs or commercial assumptions change.
Overview
Markup and margin both describe the relationship between cost, selling price, and gross profit, but they use different denominators. That difference is why the two percentages are often mistaken for one another.
- Markup measures profit as a percentage of cost.
- Gross margin measures profit as a percentage of selling price.
The basic figures are:
- Gross profit = selling price − cost
- Markup percentage = gross profit ÷ cost × 100
- Margin percentage = gross profit ÷ selling price × 100
For example, if an item costs $60 and sells for $90, the gross profit is $30. The markup is $30 ÷ $60 = 50%, while the margin is $30 ÷ $90 = 33.33%. The dollar profit is the same; only the calculation base changes.
This distinction matters for product pricing, service quotes, wholesale schedules, and discount planning. A team that asks for a “30% profit” should clarify whether it means a 30% markup on cost or a 30% margin on revenue. Those instructions produce different selling prices.
How to estimate
Use the formula that matches the commercial goal you have been given.
How to calculate a selling price from markup
If you know your cost and target markup:
Selling price = cost × (1 + markup percentage)
Convert the percentage to a decimal before calculating. For a cost of $80 and a target markup of 25%:
$80 × (1 + 0.25) = $100
The gross profit is $20, which equals 25% of the $80 cost. The resulting margin is $20 ÷ $100 = 20%.
How to calculate a selling price from margin
If you need a target gross margin:
Selling price = cost ÷ (1 − margin percentage)
For a cost of $80 and a target margin of 25%:
$80 ÷ (1 − 0.25) = $80 ÷ 0.75 = $106.67
The gross profit is $26.67, and $26.67 ÷ $106.67 is approximately 25%. This price is higher than the 25% markup example because margin is calculated from the final selling price.
Converting markup to margin
To convert a markup percentage into its equivalent margin:
Margin = markup ÷ (1 + markup)
A 50% markup becomes 0.50 ÷ 1.50 = 33.33% margin. A 100% markup becomes 1.00 ÷ 2.00 = 50% margin.
To convert margin into markup:
Markup = margin ÷ (1 − margin)
A 30% margin becomes 0.30 ÷ 0.70 = 42.86% markup.
Inputs and assumptions
A useful markup calculator is only as reliable as its inputs. Record the assumptions behind every calculation so another person can review or update the price without guessing.
Include the full relevant cost
Start with the cost that the price must recover. Depending on the business, this could include purchase cost, materials, packaging, shipping, payment processing, labor, software, subcontractor charges, or a reasonable allocation of overhead. Do not quietly mix a product’s supplier cost with a service’s fully loaded delivery cost.
For a freelancer or service team, an hourly-to-project calculation can help estimate delivery effort before applying a target margin. See the freelancer pricing calculator guide for a related approach to building a profitable project quote.
Separate tax from the pricing calculation
Decide whether your figures are tax-exclusive or tax-inclusive. A VAT or sales tax amount collected from the customer is generally tracked separately from the business’s base price for this type of estimate. Label the worksheet clearly, then apply the relevant tax treatment when preparing the final invoice. The invoice template guide covers practical fields and terms to include on an invoice.
Account for discounts
A list price that produces the target margin before discount may not produce it after discount. If a $100 price is discounted by 10%, the realized selling price is $90. With a $60 cost, gross profit falls to $30 and the realized margin becomes 33.33%.
To find the list price needed to preserve a target net price after a discount:
List price = desired net price ÷ (1 − discount percentage)
If you need to receive $100 after a 10% discount, the list price must be $100 ÷ 0.90 = $111.11, before any tax treatment.
Remember that gross margin is not net profit
Gross margin does not automatically account for rent, administration, payroll taxes, software subscriptions, financing, returns, or income tax. A price can meet a gross-margin target and still require a separate profitability review. For staff-related assumptions, a payroll calculator can help distinguish gross pay from broader employer cost; see the payroll calculator guide for small teams.
Worked examples
Example 1: Product pricing by markup
| Input | Amount |
|---|---|
| Unit cost | $40 |
| Target markup | 50% |
| Selling price | $60 |
| Gross profit | $20 |
| Resulting margin | 33.33% |
Calculation: $40 × 1.50 = $60. The $20 profit is half of cost, so markup is 50%. It is one-third of the selling price, so margin is 33.33%.
Example 2: Service pricing by target margin
Assume a service requires $750 in labor, tools, and other delivery costs. If the desired gross margin is 40%:
$750 ÷ (1 − 0.40) = $1,250
Gross profit is $500, and $500 ÷ $1,250 = 40%. If the customer receives a 10% discount, the realized price is $1,125. Gross profit becomes $375, and the realized margin falls to 33.33%. The discount therefore changes the outcome even though the original quote met the target.
Example 3: Wholesale and retail prices
Suppose a product costs $30. A wholesale price uses a 25% markup:
$30 × 1.25 = $37.50 wholesale price
If the retailer needs a 40% margin on its own selling price, the retail price is:
$37.50 ÷ (1 − 0.40) = $62.50 retail price
The manufacturer or wholesaler and the retailer are using different pricing bases. Comparing their percentages without identifying those bases can make a sound price structure appear inconsistent.
Reusable pricing worksheet
For each product or service, record: cost, target markup, target margin, proposed selling price, expected discount, net selling price, gross profit, realized margin, tax treatment, and date reviewed. Calculate both markup and margin after every proposed discount. This creates a simple audit trail and makes price-list changes easier to review.
When to recalculate
Revisit the calculation whenever an input changes, rather than waiting for an annual review. Useful triggers include:
- Supplier, material, shipping, or payment-processing costs change.
- Labor rates, delivery hours, or employer costs change.
- A new wholesale, retail, subscription, or project price list is created.
- A discount, coupon, bundle, or sales commission is introduced.
- Returns, rework, refunds, or payment terms materially affect realized revenue.
- Tax-inclusive and tax-exclusive prices are being compared.
- A product or service is no longer meeting its planned gross-margin target.
Keep the worksheet in a shared cloud location with a clear version date and named assumptions. When reviewing results, compare both the planned price and the realized price after discounts. Then use a break-even calculator to test whether the updated price covers fixed costs at the expected sales volume. The break-even calculator guide explains how to connect unit economics with required sales volume.
The practical rule is simple: use markup when the starting point is cost and margin when the goal is a share of selling price. Label the percentage, show the formula, and recalculate when costs or commercial terms move. That small discipline prevents the most common pricing error—treating markup and margin as interchangeable—and gives your team a repeatable basis for reviewing prices.