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.00for a $24.00 unit cost
- Profit per unit$6.00$30.00 − $24.00
- Margin20%a share of the price, not of the cost
- RoundingUpto the next cent, never below the target
Inputs
How to use it
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.

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.
Add the flat fee charged on each sale to the cost of one unit. With no fixed fee it is just the unit cost.
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.
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.
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.
The flat fee plus the percentage fee worked out on the final price, rounded to the nearest cent.
What you charge for one unit, minus what the unit costs you and the fees taken from the sale.
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.
| Cell | What it holds | Enter |
|---|---|---|
| A2 | Unit cost | 24 |
| B2 | Target margin (format as %) | 20% |
| C2 | Selling price, rounded up to the cent | =ROUNDUP(A2/(1-B2), |
| D2 | Profit per unit | =C2-A2 |
| E2 | Achieved margin (format as %) | =D2/C2 |
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).
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
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 |
|---|---|---|---|---|---|
| The starting numbers | $24.00 | 20% | $30.0000 | $30.00 | 20% |
| A price that needs rounding | $18.40 | 35% | $28.3077 | $28.31 | 35.01% |
| A high target | $3.50 | 60% | $8.7500 | $8.75 | 60% |
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.
| Box | What you enter | Value |
|---|---|---|
| Unit cost | What one unit costs you | $24.00 |
| Target margin | The margin you want after the fees | 20% |
| Percentage fee | A share of the selling price | 10% |
| Fixed fee per order | A flat amount on each sale | $0.30 |
| Selling price | The calculator result | $34.72 |
Illustrative fee amounts, not any marketplace rate. Take the real percentage and flat amount from your own statement.
$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.

Avoid
Why prices end up too low
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.
WrongAdd 20% to cost:$28.80 price, 16.67% marginRight20% margin:$30.00 priceEntering 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.
WrongCost entered $24.00:the $30.00 price really leaves 10%RightReal cost $27.00:price $33.75Putting 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.
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%.
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 |
|---|---|---|---|---|---|
| 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
- 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.
- 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.
- 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.
Found a mistake or something unclear? Tell us. See how we check our pages.