Skip to content
IncomeShip

Free calculator

Profit Margin Calculator

See how much you make from a sale. Enter your costs and selling price to calculate profit margin and markup, or work backward from the margin you want.

By Jacob Dymond, founder and editorPublished Facts checked against 2 sources
What do you want to work out?

What the buyer pays for the item, before sales tax.

What the item costs you: what you paid, or materials and production.

Add selling costs (optional)

A percentage of the sale price, like a marketplace or payment fee.

What you pay to ship it, not what the buyer pays.

Packaging or supplies. Don't repeat anything already in item cost.

Gross margin

60%

You keep $30.00 of the $50.00 sale after the item cost.

Gross profit
$30.00
Markup
150%
Profit ÷ item cost
See the math
  • ($50.00 − $20.00) ÷ $50.00 = 60%
  • Margin divides profit by the selling price. Markup divides it by the item cost.

A per-sale estimate. It doesn't include overhead, taxes, returns or other business costs, so it isn't your business's net profit margin.

How to calculate profit margin

To calculate profit margin, subtract the item's cost from its selling price, divide the result by the selling price, and multiply by 100. An item you bought for $20 and sold for $50 makes $30 of profit, and $30 ÷ $50 is a 60% margin.

Profit margin = (selling price − cost) ÷ selling price × 100

You divide by the selling price because margin measures how much of each sale you keep. The IRS describes gross profit the same way: sales minus the cost of the goods sold. When cost means only the item itself, the result is your gross margin.

The formula

  1. Gross profit

    Selling price − item cost

  2. Gross margin

    Gross profit ÷ selling price × 100

  3. Markup

    Gross profit ÷ item cost × 100

  4. Profit after entered costs

    Selling price − item cost − selling fees − shipping and other costs

    Margin after entered costs divides this by the selling price.

  5. Price for a target margin

    (Item cost + fixed fee + shipping + other costs) ÷ (1 − fee rate − target margin)

    Rounded up to the cent, then checked so the margin still reaches the target.

What it assumes

  • One sale of one item.
  • The selling price doesn't include sales tax.
  • A percentage selling fee is charged on the selling price.
  • Fees are rounded to the cent before adding them up.

What it doesn't include

  • Overhead such as rent, software and subscriptions
  • Advertising that isn't tied to the sale
  • Returns and refunds
  • Income tax
  • Any marketplace's actual fee schedule

Worked example

Item bought for $20, sold for $50

Gross profit ($50 − $20)
$30.00
Markup ($30 ÷ $20)
150%
Gross margin ($30 ÷ $50)
60%

No selling costs, so this is gross margin.

Margin vs markup

Margin and markup use the same profit but divide it by different numbers, which is why they're so easy to mix up.

Margin

Markup

Formula

Profit ÷ selling price

Profit ÷ item cost

Measured against

What the buyer pays

What the item cost you

$20 item sold for $50

60%

150%

A 50% markup is not a 50% margin. An item that costs $10 and sells for $15 has a 50% markup, but only a 33.33% margin, because the $5 profit is a third of the $15 price. To hit a given margin, the markup always has to be higher.

Profit margin and the markup on cost it needs
Margin you wantMarkup on cost needed
10%11.11%
20%25%
25%33.33%
30%42.86%
40%66.67%
50%100%
60%150%
75%300%

Markup = margin ÷ (100 − margin) × 100. These are conversions on the item cost alone, before any selling fees.

How to find a selling price for a target margin

To find the price that gives you a target margin, divide your cost by 1 minus the margin as a decimal. For a 40% margin on a $20 item, that's $20 ÷ 0.6 = $33.333, which rounds up to $33.34. Rounding down to $33.33 would leave you just under 40%, so always round up.

Selling fees that are a percentage of the price change the formula, because the fee grows as the price does:

Price = (item cost + fixed fees + shipping + other costs) ÷ (1 − fee rate − target margin)

With an $18 item, a 10% selling fee plus $0.30 per sale, and a 40% target, the price is $18.30 ÷ 0.5 = $36.60. At that price the fees come to $3.96, and $14.64 of profit is exactly 40% of the sale.

Some targets can't be reached. If the fee rate and the margin you want add up to 100% or more, no price works, because the fee and the profit together would take the whole sale. A 70% fee with a 40% target is one example. Switch the calculator to Find a selling price to work it out with your own numbers.

What costs to include

Item cost is what the item itself costs you. For a resale, that's what you paid for it. For something you make, it's the materials, printing or production for that one item.

Selling costs go in separately: marketplace and payment fees, shipping you pay, and packaging or supplies used for the order. Keep them apart from item cost so you can see your gross margin and your margin after those costs side by side. Enter each cost only once. If item cost already includes packaging, leave packaging out of the selling costs.

Some costs don't belong to a single sale at all: rent, software subscriptions, equipment, general advertising and income tax. They still affect what your business keeps, but they're spread across everything you sell, so they sit outside a per-sale margin.

Gross vs net profit margin

Gross profit margin compares gross profit with revenue. Gross profit is what's left of your revenue once the cost of goods sold comes out, and gross profit margin is gross profit divided by total revenue, times 100.

Net profit margin divides net profit by revenue instead. Net profit is what's left after the business's other expenses too, such as rent, wages and running costs. So a single sale can have a healthy gross margin while the business as a whole earns much less.

When you add selling costs, the result is a margin after the costs you entered for that sale. It's closer to what you actually keep, but it still isn't your business's net profit margin, because overhead, taxes and returns aren't in it.

Margin examples for selling and side income

Four sales with different costs, worked out the same way as the calculator.

Profit margin examples for selling and side income
SalePriceItem costSelling costsProfitMargin
Thrifted item flipNo extra costs, so this is gross margin$50.00$20.00$0.00$30.0060%
Handmade item$8 of fees, shipping and packaging$40.00$12.00$8.00$20.0050%
Digital printable$2 of selling fees$10.00$1.00$2.00$7.0070%
Low-margin resale$4 of fees and shipping$30.00$25.00$4.00$1.003.33%

Illustrations, not current platform fees. The first row has no selling costs, so its margin is gross margin; the others are margins after the costs shown.

The low-margin resale is the one to watch. It still makes money, but $1 on a $30 sale leaves almost no room for a return, a price drop or a cost you forgot to count.

Frequently asked questions

Sources

2 public sources, strongest evidence first.