DoItAl

Business calculator

Profit Margin & Markup Calculator

Calculate gross profit per unit, margin, markup, or the selling price needed to reach a target—all privately in your browser.

Your numbers stay in this browser

Profit calculator

Your sale
USD
USD

Currency changes formatting only. No exchange-rate conversion is performed.

Instant result

Gross profit per unit

$50.00

Margin

50.00%

Markup

100.00%

Margin is gross profit ÷ selling price. Markup is gross profit ÷ cost.

Continue with

Pricing fundamentals

Margin and markup are not the same

Margin measures gross profit against the selling price. Markup measures the same gross profit against cost. Mixing them up is one of the easiest ways to price a product below your intended return.

Cost

$50

Selling price

$100

Gross profit

$50

Margin = 50%

$50 gross profit ÷ $100 selling price

Markup = 100%

$50 gross profit ÷ $50 cost

How to calculate profit margin

Subtract product cost from selling price to get gross profit per unit. Divide that gross profit by selling price, then multiply by 100. For a $30 cost and $50 price, gross profit is $20 and margin is 40%.

How to price for a target margin

Divide cost by one minus your desired margin as a decimal. A $20 cost at a 40% target margin gives $33.333…: $20 ÷ (1 − 0.40). A displayed $33.33 is rounded; use $33.34 if cent pricing must meet or exceed 40%.

Why gross margin can overstate what you make

Product cost is only part of a real sale. Shipping, packaging, marketplace fees, payment fees, advertising, discounts, and expected refunds can turn a healthy gross margin into a thin—or negative—net margin. Review those costs separately before relying on a gross margin.

Common margin mistakes

  • • Treating markup as margin
  • • Ignoring percentage and fixed fees
  • • Calculating from the pre-discount price
  • • Counting tax collected as revenue
  • • Forgetting refund and return risk
  • • Setting a 100% target margin

What this tool does

Separates gross profit, margin, and markup, and solves selling prices for target returns. Include additional variable costs in a consistent model before treating gross profit as take-home profit.

How to use it

  1. Enter product cost and selling price in the same currency.
  2. Compare profit, margin, and markup; switch to target pricing when needed.
  3. Review fees, packaging, shipping, advertising and expected refunds separately; gross profit is not take-home profit.

Worked example

Cost 30 and selling price 50 produce profit 20, margin 40%, and markup about 66.67%. A 40% markup on cost 30 instead gives price 42 and margin about 28.57%.

Processing and explanation

Profit = price − cost. Margin = profit ÷ price × 100. Markup = profit ÷ cost × 100. Target-margin price = cost ÷ (1 − target margin/100). The denominators explain why margin and markup differ.

Limits and common mistakes

Zero price leaves margin undefined; zero cost leaves markup undefined. A 100% target margin cannot be reached with positive cost. Gross outputs exclude overhead and additional expenses unless you include them in the appropriate model.

Privacy and your input

Calculations run in this tab. Entered prices, costs, revenue, and financial assumptions are excluded from tool URLs and analytics.

Frequently asked questions

Is margin the same as markup?
No. Margin divides by selling price; markup divides by cost.
Does choosing a currency convert money?
No. Use one consistent currency for all entries; the calculator does not fetch exchange rates.

Material content update: