Profit Margin vs Markup Calculator Guide: Set Prices Without Losing Profit
profit marginsmarkuppricingbusiness calculators

Profit Margin vs Markup Calculator Guide: Set Prices Without Losing Profit

PProficient Editorial Team
2026-12-01
6 min read

Learn the difference between profit margin and markup, use both pricing formulas, and review costs, fees, discounts, overhead, and taxes.

Margin and markup are related, but they answer different pricing questions. This guide explains both formulas, shows how to convert between them, and provides a repeatable way to review product or service prices after costs, fees, discounts, overhead, and taxes are considered.

Overview

The difference between profit margin and markup is the denominator used in the calculation:

  • Profit margin measures profit as a percentage of the selling price.
  • Markup measures profit as a percentage of the cost.

Both metrics are useful, but confusing them can lead to prices that look profitable while producing less profit than expected. A markup calculator is useful when you start with a known cost and need to set a selling price. A profit margin calculator is useful when you already have a selling price and want to assess the result.

For example, if an item costs 60 and sells for 100, the profit is 40. The markup is 40 divided by 60, or 66.67%. The profit margin is 40 divided by 100, or 40%. The same transaction therefore has a 66.67% markup and a 40% margin.

Use the figures in this article in your preferred spreadsheet, pricing worksheet, or product pricing calculator. The important part is to use consistent cost and revenue definitions.

How to estimate

Profit margin formula

Profit margin = (Selling price − Total cost) ÷ Selling price × 100

In this formula, total cost should reflect the costs you want the decision to cover. For a simple product calculation, that might be the purchase or production cost. For a more realistic review, it may also include payment processing, packaging, shipping subsidies, marketplace fees, direct labor, and an allocated share of overhead.

Markup formula

Markup = (Selling price − Total cost) ÷ Total cost × 100

If you know your cost and target markup, calculate the price as follows:

Selling price = Total cost × (1 + Markup percentage)

For instance, a total cost of 80 with a 50% markup produces a price of 120. The resulting margin is 33.33%, not 50%.

Converting between margin and markup

To convert a target margin into markup:

Markup = Margin ÷ (1 − Margin)

To convert markup into margin:

Margin = Markup ÷ (1 + Markup)

Target marginEquivalent markup
20%25%
25%33.33%
30%42.86%
40%66.67%
50%100%

The table is a reference, not a universal pricing recommendation. Your target should reflect your cost structure, customer expectations, competitive context, and business goals.

Inputs and assumptions

A reliable calculation starts with a clear definition of each input. Before using a profit margin calculator or markup calculator, decide whether the figures are per unit, per project, or for a complete period.

Direct costs

Include costs that increase when you sell or deliver the specific item. Examples can include materials, inventory cost, packaging, contractor time, transaction fees, and delivery costs paid by the business. For a service, direct costs may include project-specific software, specialist support, or billable delivery time.

Overhead

Rent, general software, insurance, accounting, equipment, and non-billable administrative time may not belong in every unit-level calculation, but they still need to be recovered by the business. You can allocate overhead across expected sales, projects, or productive hours. State the allocation method so the result can be reviewed later.

Discounts and fees

Calculate margin using the amount the business actually keeps, not only the list price. If a product listed at 150 is sold with a 10% discount, the pre-tax selling price is 135. If a platform or payment fee is then deducted, subtract that fee before calculating profit.

Taxes

Keep sales tax or VAT separate when it is collected from the customer and remitted elsewhere. In that situation, the tax-inclusive amount may not represent business revenue. If a tax is included in your cost or cannot be recovered, treat it according to your accounting method. When uncertain, confirm the treatment with a qualified tax professional rather than embedding an assumption in every price.

For a broader workflow, pair pricing calculations with a cash flow forecast template so profitable sales are not confused with immediate cash availability. A free invoice template guide can also help keep quoted prices, payment terms, and invoiced amounts consistent.

Worked examples

Product example: target margin

Assume a product has the following per-unit costs:

  • Purchase or production cost: 42
  • Packaging and delivery contribution: 6
  • Expected transaction and platform fees: 7

The estimated total cost is 55. If the target margin is 30%, calculate the required price:

Price = 55 ÷ (1 − 0.30) = 78.57

At a selling price of 78.57, the estimated profit is 23.57 and the margin is approximately 30%. The markup on the 55 total cost is approximately 42.86%, which matches the conversion table.

Discount review

Suppose the same product is normally sold for 78.57 but a customer receives a 10% discount. The realized selling price is 70.71. With total cost still at 55, estimated profit falls to 15.71 and margin falls to approximately 22.22%.

This is why a discount should be tested against the target margin before it is offered. If the discount is frequent, build it into the standard pricing model rather than treating it as an exception.

Service example: project quote

A freelancer estimates 12 hours of delivery at an internal cost rate of 35 per hour, plus 80 in project-specific expenses. Total estimated cost is therefore 500. To achieve a 25% margin, the quote is:

Quote = 500 ÷ (1 − 0.25) = 666.67

The implied markup is 33.33%. Before sending the quote, the freelancer should check whether the 12-hour estimate includes communication, revisions, administration, and payment delays. For a fuller project-pricing process, see the freelancer pricing calculator guide.

When to recalculate

Pricing is not a one-time exercise. Recalculate when any input that affects cost, revenue, or delivery effort changes. Useful review points include:

  • Introducing a new product, package, subscription, or service tier.
  • Changing suppliers, materials, software, contractors, shipping, or payment methods.
  • Adding a discount, promotional offer, referral fee, or sales commission.
  • Discovering that projects take longer than estimated or require more revision time.
  • Reviewing prices after a change in platform fees, tax treatment, or currency assumptions.
  • Comparing actual results with the assumptions used in the original quote.

Use a simple pricing review checklist: confirm the selling price, list every direct cost, assign a reasonable overhead amount, subtract expected fees and discounts, separate applicable taxes, and calculate both margin and markup. Then compare the result with the minimum profit you need.

Keep the calculation versioned so you can see why a price changed. For teams, document the approved assumptions in an operations template pack. For recurring work, connect the review to your invoicing and payment terms. Revisit the model whenever actual delivery or cash-flow results show that the original assumptions no longer describe the business.

Related Topics

#profit margins#markup#pricing#business calculators
P

Proficient Editorial Team

Productivity and Business Tools Editor

Senior editor and content strategist. Writing about technology, design, and the future of digital media. Follow along for deep dives into the industry's moving parts.