Profit Margin & Markup Calculator

Calculate profit margin, markup, gross profit, target price, or maximum cost from a product's unit cost and realized selling price.

Product pricing

Profit margin

0%
Profit per unit
$0
Markup
0%

Interpret your margin and markup

Profit margin and markup describe the same gross profit from different bases. Margin compares profit with selling price. Markup compares profit with cost.

Inputs that matter most

  • Cost per unit: the direct cost tied to one sale.
  • Selling price per unit: the customer price used to calculate gross profit.
  • Profit per unit: selling price minus cost per unit.

Common mistakes

  • Treating a 40% markup as the same as a 40% margin.
  • Leaving out payment fees, packaging, fulfillment, commissions, or direct labor from cost.
  • Using revenue after discounts in one place and list price in another.
  • Comparing gross margin with net profit after overhead, taxes, and financing.

When this estimate can be misleading

This calculator is a simple gross profit model. It does not include fixed overhead, refunds, taxes, financing costs, inventory timing, or multi-product sales mix.

Scenarios to try

  • Raise cost to include payment processing or fulfillment fees.
  • Lower selling price to test a promotion or discount.
  • Compare a few price points to see how margin and markup move.
  • Include direct labor or commissions in cost when they apply to each sale.

How to use this profit margin calculator

Use this calculator when pricing a product, quote, service package, or wholesale item.

  1. Enter the direct cost per unit and selling price per unit.
  2. Include costs that move with each sale, such as materials, packaging, fulfillment, payment fees, commissions, or direct labor.
  3. Review profit per unit, margin, and markup in the result panel.
  4. Change the cost or price to compare alternate price points.

Profit Margin & Markup Calculator features

  • Calculate gross profit per unit from cost and selling price.
  • Calculate profit margin as profit divided by selling price.
  • Calculate markup as profit divided by cost.
  • Update results instantly as cost or selling price changes.

Margin vs markup

Margin and markup are easy to mix up because they use the same profit amount with different denominators.

Margin answers: what share of the selling price is gross profit? Markup answers: how much profit is added on top of cost?

For example, a product that costs $60 and sells for $100 has $40 of gross profit, a 40% margin, and a 66.7% markup.

This distinction matters when comparing retail pricing, wholesale pricing, discounts, and service quotes. A seller who wants a target margin must solve from selling price, while a seller applying a markup starts with cost and adds a percentage on top.

Use direct cost consistently. If you include payment fees in one scenario but not another, the margin comparison can look better or worse for reasons unrelated to price.

Profit margin and markup formulas

The calculator uses gross profit formulas for one product or service.

Gross profit per unit
G = P - C

P is selling price per unit, and C is cost per unit.

Profit margin
Margin = (P - C) / P

Margin divides gross profit by selling price.

Markup
Markup = (P - C) / C

Markup divides gross profit by cost.

The formulas describe gross profit for one unit. They do not account for fixed monthly overhead, refunds, taxes, inventory losses, advertising spend, or a mix of products with different margins unless you add those costs into the unit cost yourself.

Profit margin and markup FAQ

What is the difference between margin and markup?
Margin is gross profit divided by selling price. Markup is gross profit divided by cost. A 40% markup is lower than a 40% margin.
Should I use margin or markup for pricing?
Many sellers use markup to set prices from cost, then check margin to understand how much of each sales dollar remains as gross profit.
Does this calculate net profit?
No. This is a gross profit calculator. It does not subtract rent, salaries, taxes, financing, software, or other overhead unless you include those costs in the unit cost yourself.
What should I include in cost per unit?
Include direct costs tied to the sale, such as product cost, materials, packaging, fulfillment, payment fees, commissions, or direct labor when those apply.
How do discounts affect margin?
Enter the discounted selling price instead of the list price. A discount lowers gross profit and can reduce margin quickly when cost stays the same.
Can I use this for services?
Yes, if you can estimate the direct cost of delivering one service package or billable unit. Include labor or subcontractor costs when they vary with each sale.

Keep margin and markup tied to the correct base

Margin divides profit by selling price. Markup divides profit by cost. The same transaction therefore has different margin and markup percentages. State which measure a target uses before solving for price; applying a 40% markup does not create a 40% margin.

Define unit cost consistently. Direct materials may be obvious, but inbound freight, packaging, payment fees, marketplace commission, labor, spoilage, returns, and warranty work can also change with sales. A narrow product cost is useful for some inventory decisions, while a fuller variable cost is better for pricing and contribution analysis.

Use the price the business actually keeps. Discounts, coupons, rebates, refunds, and channel fees can reduce net revenue. Taxes collected for a government generally should not inflate the selling price used to measure business margin. Compare the calculation with a real settled order, not only the menu or list price.

Gross margin does not equal net profit. Rent, salaries, software, insurance, interest, taxes, and other period costs remain after gross profit. A product can have a positive unit margin while the company loses money at current volume. Connect pricing work to the break-even calculator when fixed costs and sales volume matter.

Test price changes with volume and customer behavior. A higher price raises unit margin only if the cost and realized price behave as entered; it may reduce demand or increase service expectations. A promotion can lower unit margin but increase total contribution. Model both the per-unit result and expected units rather than optimizing one percentage.

Round currency at the point the real system rounds it. A displayed price, tax rule, or payment processor may operate in cents while an internal model uses more precision. Small differences matter at high volume. Save the unrounded calculation and verify the actual invoice or order arithmetic.

Decision checklist

  • Confirm whether the target is margin on selling price or markup on cost and label it consistently in the pricing record.
  • Build unit cost from the expenses relevant to the decision, including variable fees, freight, packaging, labor, returns, and waste where applicable.
  • Use realized net price after discounts, refunds, rebates, and channel charges rather than a list price customers rarely pay.
  • Review gross profit, fixed-cost coverage, expected volume, demand response, and cash timing alongside the percentage.
  • Test the rounded price in the actual order or invoice system and reconcile a completed transaction.

Built and maintained by utilkit. Updated . Found an issue? Send corrections to contact@utilkit.com

Collections featuring this utility

A pen and planning notes on a sheet of paper

Small Business

Small business math should answer everyday decisions: can this offer work, is the price healthy, was the meeting worth it, and did the campaign pay for itself?

Related Blog Posts

View all