Product Pricing Calculator

Find a price that meets your target margin after your per-unit costs and any fees.

  • Free
  • Nothing saved
  • Updated October 14, 2026
  • Sources read October 8, 2026
CalculatorRuns in your browser. Nothing is saved.

Include the per-unit costs this price should cover.

0% to 99.99%; this is margin, not markup.

Optional. A fee charged as a share of the selling price, such as a marketplace or card fee. Use 0 if none.

Optional. A flat fee on each sale, such as $0.30. Use 0 if none.

Use up to two decimal places without commas or currency symbols. USD inputs are limited to $1 billion.

Result

Enter your numbers. Your result appears here as you type, or when you press Calculate.

Price$30.00
Profit$6.00

In short

This product pricing calculator finds the lowest selling price that keeps your target margin after your unit cost and any fees. It gives the price, the fees at that price, the profit per unit and the margin that price actually achieves.

Enter the unit cost and a target margin. The price updates as you type. If a marketplace or payment service takes a fee, add it in a fee box. One box is for a percentage of the price. The other is for a flat amount per order. Both start at 0 and are optional. The margin is a share of the price, not a percentage added to the cost. The price comes from your numbers alone, so it does not know what buyers will pay.

  • Example price
    $30.00
    for a $24.00 unit cost
  • Profit per unit
    $6.00
    $30.00 − $24.00
  • Margin
    20%
    a share of the price, not of the cost
  • Rounding
    Up
    to the next cent, never below the target

Inputs

How to use it

Unit cost (USD)
$24
What one unit costs you, including the other per-unit costs you want the price to cover. It must be at least $0.01 and at most $1 billion, with up to two decimal places.
Target margin (%)
20%
The share of the selling price you want left as profit, from 0% to 99.99% with up to two decimal places. Enter 20 for 20%. This is margin, not markup. With a percentage fee, it is the margin you want after that fee.
Percentage fee (%)
0%
Optional. A fee charged as a share of the selling price, such as a marketplace commission or a card payment fee, from 0% to 99.99% with up to two decimal places. The target margin plus this fee must be below 100%. Leave it at 0 if there is none.
Fixed fee per order (USD)
$0
Optional. A flat fee charged on each sale, such as a payment fee of $0.30, from $0 to $1 billion with up to two decimal places. It is added to the cost the price has to cover. Leave it at 0 if there is none.

Before you start

Which costs to include in the product pricing calculator

To price a product, start with a complete unit cost. The price is only as good as the cost you enter. These are the usual choices for one unit.

Count these

3
  • Product or materialsYesThe basic cost of one unit. If you buy a pack, divide the pack cost by the units in it.
  • PackagingYesYou pay for it with every order.
  • Shipping you payYesIf you charge the buyer for shipping separately, leave it out of both the price and the cost.

Fee box

2
  • Fees of a fixed dollar amountFee boxEnter a flat per-order fee in the Fixed fee box. It is the same whatever the price, and it is added to the cost the price must cover.
  • Fees that are a percentage of the priceFee boxEnter them in the Percentage fee box. They grow with the price, so the calculator works them out on the final price.

Your choice / Spread over units

2
  • Returns and breakageYour choiceSpread your own usual loss over the units sold if you want the price to cover it.
  • Rent, software, salariesSpread over unitsShopify spreads them with (variable costs + fixed costs) ÷ units made. That needs an estimate of units.

Leave out

1
  • Sales taxNoIt is added on top of the price, so it is not part of either.

Choices, not rules. Sources: Shopify (cost examples and the cost-per-unit formula) and OpenStax 6.2 (tax added to the price), listed below.

Hands pour melted wax into one amber jar, with a spool of wick, empty jars, lids and boxes on the workbench around it.
The unit cost is everything one item needs: the wax, the jar, the wick, the lid and the box.

The math

Selling price formula for a target margin

Unit cost is the total you entered for one unit. Target margin is the profit you want as a share of the price. The percentage fee is charged on the selling price and the fixed fee once per order. With both fees at 0, the selling price formula is unit cost ÷ (1 − margin). Neither Shopify page in the sources gives a formula for a percentage fee. So the fee version is algebra on the margin formula they do give.

Cost to cover
unit cost + fixed fee

Add the flat fee charged on each sale to the cost of one unit. With no fixed fee it is just the unit cost.

Share of the price left for it
100 − target margin − percentage fee

Of every 100 of price, take away the margin you want and the percentage fee. What remains has to pay for the cost to cover.

Price before rounding
cost to cover(share left for it100)

Turn the share into a decimal (80 becomes 0.80) and divide the cost to cover by it. With no fees this is the unit cost divided by 1 minus the margin.

Selling price
price before rounding , rounded up to the next cent

If the result has fractions of a cent, round up. Sometimes the percentage fee, rounded to a cent, still leaves the margin just under your target. Then the calculator adds one cent at a time until it does not.

Fees at that price
fixed fee + percentage fee × selling price100

The flat fee plus the percentage fee worked out on the final price, rounded to the nearest cent.

Profit per unit
selling price − unit cost − fees

What you charge for one unit, minus what the unit costs you and the fees taken from the sale.

Achieved margin (%)
profit per unitselling price × 100

Divide the profit by the final selling price and multiply by 100, to confirm the margin you really get after rounding.

Excel and Google Sheets

In a spreadsheet

The same calculation works in Excel and Google Sheets. Put the headings in row 1 and the numbers in row 2.

E2=D2/C2
CellWhat it holdsEnter
A2Unit cost24
B2Target margin (format as %)20%
C2Selling price, rounded up to the cent=ROUNDUP(A2/(1-B2),2)
D2Profit per unit=C2-A2
E2Achieved margin (format as %)=D2/C2
The calculator works in whole cents. A spreadsheet works in decimals, so in rare cases its price can differ from the calculator by a cent. With fees, put the fixed fee in F2 and the percentage fee in G2 (format as %), and use =ROUNDUP((A2+F2)/(1-B2-G2),2) for the price. A spreadsheet does not add the extra cent the calculator may add when rounding the fee to the cent, so it can come out a cent or two lower.

Example

Pricing one product, step by step

Take an illustrative item that costs $24.00 and a target margin of 20%. These are the calculator's starting numbers; both fee boxes start at 0, so no fees appear here (the fee example further down uses them).

Unit costWhat you entered$24.00
Price before rounding$24.00 ÷ (1 − 0.20)$30.00
Profit per unit$30.00 − $24.00$6.00
Target margin
20%
What you entered
Selling price
$30.00
Rounded up to the next cent
Achieved margin
20%
$6.00 ÷ $30.00 × 100

Of every $30.00 sale, $24.00 covers the cost and $6.00 is profit. That price needs no rounding, so the achieved margin equals the target.

Picture it

How the $30.00 is built

From a $24.00 cost to a $30.00 price
Unit cost$24.00
Profit (20% of the price)+$6.00
Selling price$30.00
Unit cost $24.00Profit (20% of the price) +$6.00

The profit is added on top of the cost. But its size is set by the price: 20% of $30.00 is $6.00, not 20% of $24.00.

Three cases

More examples and the rounding

The worked example lands on a whole number of cents, so nothing is rounded. Most prices do not. The calculator rounds up to the next cent, so the achieved margin is never below the target.

Case / Unit cost / Target margin / Price before rounding / Selling price / Achieved margin
CaseUnit costTarget marginPrice before roundingSelling priceAchieved margin
The starting numbers$24.0020%$30.0000$30.0020%
A price that needs rounding$18.4035%$28.3077$28.3135.01%
A high target$3.5060%$8.7500$8.7560%

Illustrative numbers. The achieved margin is the calculator result, shown to two decimals. It sits a hair above the target only when the price was rounded up.

Interpret

Reading the price as a floor

The price is a floor, not a verdict

It is the lowest price that meets your target on the cost you entered. It cannot see what buyers will pay or what similar items sell for. If the market price is lower, you must lower the cost or the target. The Profit Margin Calculator shows what a lower price leaves.

The achieved margin is never below the target

The price is rounded up to the next cent. When it was already a whole number of cents, the achieved margin equals the target. Otherwise it is a hair above. The examples above show both cases.

The two ends of the range

A 0% target returns a price equal to the cost, with no profit. A target of 100% is not accepted, because the formula would divide by zero. The highest target is 99.99%. With a percentage fee, the margin plus the fee must stay below 100%.

Fees raise the price by more than their size

A fee that is a share of the price is also charged on the extra price that pays for it. In the fee example, a 10% fee and a $0.30 flat fee take the price from $30.00 to $34.72. That is $4.72 more. It pays $3.77 of fees and still keeps a 20% margin.

Interpret

How to calculate a price to cover fees

A percentage fee grows with the price, so it cannot go into the unit cost as a fixed amount. The calculator has two fee boxes for this. A fixed fee per order is added to the cost the price must cover. A percentage fee is taken from the share of the price you keep.

Price before rounding
(unit cost + fixed fee)(1 − (target margin + percentage fee)100)
Box / What you enter / Value
BoxWhat you enterValue
Unit costWhat one unit costs you$24.00
Target marginThe margin you want after the fees20%
Percentage feeA share of the selling price10%
Fixed fee per orderA flat amount on each sale$0.30
Selling priceThe calculator result$34.72

Illustrative fee amounts, not any marketplace rate. Take the real percentage and flat amount from your own statement.

Where the $34.72 goes
Selling price$34.72
Unit cost−$24.00
Fixed fee per order−$0.30
10% fee on the price−$3.47
Left after cost and fees$6.95
Unit cost −$24.00Fixed fee per order −$0.3010% fee on the price −$3.47Left after cost and fees $6.95

$6.95 ÷ $34.72 is a 20.02% margin after fees. It lands a hair above 20% because the price was rounded up to the cent.

The fee version assumes one flat percentage on the whole selling price plus one flat amount per order. If a fee is also charged on shipping or tax, or is capped, the result is only an approximation. To check a price, enter it as revenue in the Profit Margin Calculator. Enter the cost and fees as included cost.

At a market stall, a buyer holds a card to a small card reader next to a row of candles.
A card fee or a marketplace fee comes out of every sale. So the product pricing calculator raises the price to cover it.

Avoid

Why prices end up too low

  1. Adding the margin to the cost

    Adding 20% to a $24.00 cost gives $28.80, but the margin on that price is only 16.67%. A margin is a share of the price, so work from the price, as this calculator does.

    Wrong
    Add 20% to cost:
    $28.80 price, 16.67% margin
    Right
    20% margin:
    $30.00 price
  2. Entering a cost that is too low

    If the real cost is $27.00 but you enter $24.00, the $30.00 price leaves $3.00, a margin of 10%, not 20%. Packaging, postage and per-order fees are the costs most often missed.

    Wrong
    Cost entered $24.00:
    the $30.00 price really leaves 10%
    Right
    Real cost $27.00:
    price $33.75
  3. Putting a percentage fee in as dollars

    A fee that is a share of the price changes when the price changes. So a dollar amount worked out at one price is wrong at another. Enter it in the Percentage fee box so it follows the price, and keep flat fees in the Fixed fee box.

  4. Counting a fee twice

    If a card fee is already in your unit cost, do not also enter it in a fee box. The price would pay for it twice and come out too high. Enter each fee in one place only.

Avoid

Why adding a percentage falls short

Adding the same percentage to the cost always lands below the price that margin needs, and the gap widens as the target grows. The two lines meet only at 0%.

Price to charge on a $24.00 cost
$0$10$20$30$40$50$600%10%20%30%40%50%60%Price that gives the marginCost plus the same percentage20%: $30.00 vs $28.80

Target margin · Price

At 20% the price needs $30.00. Adding 20% to the cost gives $28.80.

Look it up

Quick reference: prices for common targets

Target margin / Multiply cost by / $10.00 cost / $25.00 cost / $40.00 cost / $75.00 cost
Target marginMultiply cost by$10.00 cost$25.00 cost$40.00 cost$75.00 cost
20%1.25$12.50$31.25$50.00$93.75
30%1.43$14.29$35.72$57.15$107.15
40%1.67$16.67$41.67$66.67$125.00
50%2.00$20.00$50.00$80.00$150.00

Selling prices, each rounded up to the next cent. The price is the cost times the multiplier, which is shown to two decimals, so doing the sum by hand can differ by a cent. Other costs and targets: use the calculator above.

Limits

What you must add yourself

  • Only the unit cost and the two fees you enter are covered. Taxes, overhead and ads are not added for you. There are no built-in marketplace or payment fee tables. You enter the percentage and the flat amount from your own statement.
  • Unit cost must be at least $0.01. Target margin and percentage fee must each be from 0% to 99.99% and together below 100%. Fixed fee can be $0 to $1 billion. All accept up to two decimal places. The calculated price cannot be above $1 billion.
  • The price is rounded up to the next cent. The percentage fee is worked out on that price and rounded to the nearest cent. If that leaves the margin under your target, the price goes up one cent at a time until it does not. Percentages show up to two decimals.
  • The fee version assumes one flat percentage on the whole selling price plus one flat amount per order. If a platform also charges a fee on shipping or tax, or caps a fee, the result is an approximation.
  • It is a cost-based estimate. It does not forecast demand and is not a pricing recommendation, accounting, tax or financial advice.
  • It runs in your browser. Nothing you enter is saved or sent anywhere.

Questions

Questions

How do I check if a price I already use covers my fees?

Enter the price as revenue in the Profit Margin Calculator. Enter your unit cost and fees as included cost. It returns the profit, the margin and the markup. Open the Profit Margin Calculator

How do I calculate a price to cover fees?

Enter the fee as a percentage of the price in the Percentage fee box. Put any flat per-order amount in the Fixed fee box. For example, take a $24.00 unit cost, a 20% target margin, a 10% fee and a $0.30 fixed fee. The price is $34.72. It pays $3.77 of fees and keeps $6.95. Take the percentage and the flat amount from your own seller statement or the platform's fee page: this calculator has no built-in fee tables. To see what a platform's fees leave of a price you already charge, use the Etsy calculator for Etsy orders or the Profit Margin Calculator. Etsy Fee & Profit Calculator (US)

How much do I charge to keep $100 after fees?

Enter the amount you want to keep, here $100, as the unit cost. Set the target margin to 0% and enter your fees. With an example 10% fee and a $0.30 fixed fee, the price is $111.45. The fees take $11.45 and leave $100.00.

I price with a markup. What margin is that?

Convert it: margin = markup ÷ (100 + markup) × 100, so a 25% markup is a 20% margin. In the other direction, a 20% margin on $24.00 is the same as adding 25%, which gives $30.00. Convert from the original numbers, not from a rounded percentage. The guide has the conversion table. Margin vs markup: how to calculate each

Why does the price divide by 1 minus the margin?

The margin is a share of the price. So the cost must fill the rest of the price. With a 20% margin, the cost is 80% of the price: $24.00 ÷ 0.80 = $30.00. And 20% of $30.00 is the $6.00 profit. Margin vs markup: how to calculate each

What margin should I aim for?

There is no number that fits every business, so this page quotes no average. Add up what you must cover each month plus the profit you want, and see what margin on your sales that takes. The Profit Margin page shows how to work backward. Profit Margin Calculator

What happens if I take 10% off?

The cost stays the same, so the discount comes straight out of profit. $30.00 becomes $27.00, profit falls from $6.00 to $3.00 and the margin falls from 20% to 11.11%. A discount equal to the margin, here 20%, brings the price down to the cost and leaves no profit.

Sources

Sources and review

Sources3 official pages, each read on the date shownShow allHide
  1. Shopify: markup vs marginshopify.com · Read

    The definitions of margin and markup, selling price = cost ÷ (1 − target margin) with a $30 cost and 25% margin giving $40, and a markup-to-margin chart. The article shows an update date of September 16, 2026. It has no percentage-fee method. This page does not use its benchmark figures.

  2. OpenStax Contemporary Mathematics 6.2: discounts, markups and sales taxopenstax.org · Read

    Markup defined on cost, and sales tax added on top of a price. It does not define margin.

  3. Shopify: how to price a productshopify.com · Read

    Variable cost examples (packaging, shipping, credit card processing fees), the cost-per-unit formula and the price formula: cost per unit ÷ (1 − desired profit margin as a decimal). The article is dated September 3, 2026. It does not give a method for a percentage fee, so the fee version on this page is algebra on that formula. This page does not use its industry margin figures.

The page text was last updated on October 14, 2026 and the sources were last checked on October 8, 2026. Example figures are illustrative and were made with the same formulas as the calculator.