Smekys
Ad Space

Pricing Calculator

Free pricing calculator: enter unit cost and target margin to get the selling price, equivalent markup, and per-unit profit. Margin vs markup, made clear.

Enter Values

$

What you pay to make or buy one unit (materials, labor, wholesale).

%

The profit you want as a percentage of the final selling price.

$

Allocated rent, utilities, software, and salaries per unit sold.

$

Packaging, postage, or fulfillment cost tied to each unit.

Result

Fully Loaded Cost per Unit
$20.00
Suggested Selling Price
$33.33
Gross Profit per Unit
$13.33
Equivalent Markup
66.67%
Resulting Gross Margin
40%

Setting a price is the single most important business decision you make, and it is also the one most often done by guesswork. A surprising number of sellers apply a "markup" to their cost, call that a "margin," and then wonder why their profit is thinner than the spreadsheet promised. This pricing calculator removes that confusion: you enter what the product costs you and the gross margin you actually want, and it returns the selling price you must charge — plus the equivalent markup so you can see exactly how the two differ.

The core rule is simple but counterintuitive. If an item costs you $20 and you want a 40% gross margin, you do not multiply by 1.40 to get $28. You divide by (1 − 0.40), which gives $20 ÷ 0.60 = $33.33. That single distinction — dividing by (1 − margin) instead of multiplying by (1 + markup) — is the difference between a healthy business and one that quietly leaks margin on every sale.

How to Use

  1. Enter the Unit Cost (COGS) — the direct cost to make or buy one unit. This is materials, factory labor, or the wholesale price you pay your supplier.
  2. Set your Target Gross Margin as a percentage of the final selling price. A 40% margin means 40 cents of every dollar of revenue is left after paying for the product itself.
  3. Expand the optional fields to add Overhead per Unit and Shipping per Unit. Allocating rent, software, packaging, and postage to each unit prevents you from pricing based on product cost alone and discovering later that you are actually losing money.
  4. Read the result card. The Suggested Selling Price is the price you should list. The Equivalent Markup shows what percentage you would have to mark the cost up by to hit that margin, and Gross Profit per Unit is the dollars you keep on each sale.

If you already have a price in mind and want to back into the margin, reverse the logic: profit divided by price gives margin, while profit divided by cost gives markup. Keeping those two denominators straight is the whole game.

Margin vs Markup: Why They Are Not the Same

The two terms sound interchangeable, but they use different denominators:

  • Gross Margin = Profit ÷ Selling Price. It answers: "of every dollar I charge, how much do I keep?"
  • Markup = Profit ÷ Unit Cost. It answers: "by what percentage did I raise the cost to get my price?"

On the $20 example with a target 40% margin, the price is $33.33 and profit is $13.33. Expressed as a margin, that is $13.33 ÷ $33.33 = 40%. Expressed as a markup, it is $13.33 ÷ $20 = 66.67%. To get a 40% margin you must actually mark the cost up by about two-thirds, not by 40%.

This asymmetry is why applying a 40% markup when you meant a 40% margin leaves you at only a 28.6% margin. The table below makes the gap concrete:

Target Margin Price on $20 Cost Required Markup
20% $25.00 25.0%
30% $28.57 42.9%
40% $33.33 66.7%
50% $40.00 100.0%
60% $50.00 150.0%

The higher the margin you target, the more the required markup outruns it.

The Pricing Formula

The gross-margin pricing formula is:

Selling Price = Total Cost ÷ (1 − Target Margin)

Where Total Cost includes the direct unit cost plus any overhead and shipping you choose to allocate. The companion identity is:

Markup = (Selling Price − Total Cost) ÷ Total Cost

For example, a fully loaded cost of $33.00 and a 40% target margin produce a price of $33.00 ÷ 0.60 = $55.00, with a per-unit profit of $22.00 and an equivalent markup of 66.67%. If you instead wanted a 50% margin on a $1,000,000 capital project, the price doubles the cost to $2,000,000.

Examples

Example 1 — The classic $20 product. A handmade candle costs $2.00 in wax and wick. The seller wants a 40% gross margin. The price is $2.00 ÷ 0.60 = $3.33, with $1.33 of profit per unit and a 66.7% markup. If they had mistakenly applied a 40% markup instead, they would price at $2.80 and net only a 28.6% margin.

Example 2 — A fully loaded stack. A retailer buys a widget for $25. Allocated overhead is $5 per unit and shipping is $3 per unit, bringing the fully loaded cost to $33. At a 40% target margin the price is $55.00, leaving $22.00 of gross profit on every sale. Forgetting overhead would have priced the item at $41.67 and masked a hidden $5-per-unit loss.

Example 3 — A six-figure contract. A software project costs the vendor $1,000,000 in labor and cloud spend. A 50% gross margin requires a price of $2,000,000, not $1,500,000. Many vendors lose money on enterprise deals because they price as cost plus 50% markup, which yields only a 33.3% margin once the invoices are paid.

FAQ

How do I calculate the selling price from cost and margin?

Divide your total unit cost by (1 minus the target margin). For a $20 cost with a 40% target margin, the price is $20 ÷ (1 − 0.40) = $20 ÷ 0.60 = $33.33. Using the calculator above, enter the unit cost and the desired margin, and it returns the price instantly.

What is the difference between margin and markup?

Margin divides profit by the selling price, while markup divides profit by the cost. On a $20 product sold for $33.33, the $13.33 profit is a 40% margin ($13.33 ÷ $33.33) but a 66.7% markup ($13.33 ÷ $20). The two numbers always differ, and markup is always larger than the margin it produces.

Should I use margin or markup to set prices?

Use gross margin. Margin is what survives after the sale and pays your operating expenses; markup is just a percentage bump on cost. Pricing off markup accidentally undervalues your product whenever costs are a large share of price, because the gap between markup and margin widens as costs rise.

What overhead should I include in my unit cost?

Add any cost that scales with the number of units you sell: packaging, shipping, payment-processing fees, and the portion of rent, salaries, and software you can reasonably allocate per unit. If you omit overhead, the calculator returns a price that covers product cost but not the business itself.

What is a good gross margin for a small business?

Retailers typically target 30–50%, restaurants 60–70% (food cost plus labor), and software companies often 70–85%. There is no universal number: the right margin depends on your industry, competitive landscape, and how much reinvestment you need. Use this tool to test how different margin targets move your price.

What happens if my target margin is 100%?

A 100% margin is mathematically impossible, because it would require dividing by zero. A 50% margin already means doubling your cost, and anything above 50% means tripling or more. The calculator caps the target margin below 100% to avoid an undefined price.

Disclaimer

This pricing calculator is provided for informational purposes only and does not constitute financial, accounting, tax, or legal advice. Suggested prices are estimates based on the cost and margin inputs you enter and the standard gross-margin formula. Actual pricing decisions should account for competitor pricing, customer demand, taxes, promotions, channel fees, and your own business model. Consult a qualified accountant or business advisor before setting prices that affect your livelihood.

Related Calculators

Disclaimer

Results are estimates for illustration only. Verify important figures independently.