Retail pricing formula, selling price, margin and markup

Retail Pricing Formula: How to Calculate Selling Price and Margin

A practical retail pricing guide for sellers who need to turn unit cost into a workable selling price, compare margin with markup, account for selling fees and test discount headroom.

Retail Pricing Formula: How to Calculate Selling Price and Margin

A retail price needs to do more than sit above product cost. It has to recover the cost of getting the product ready for sale, absorb relevant selling fees, leave enough margin for the business, and still make sense to the customer.

That is why a useful retail pricing calculator should answer a specific question: what selling price is required for this product, given its real unit cost and the margin you want to keep?

The calculation is straightforward once the inputs are defined correctly. The harder part is deciding what belongs in cost, distinguishing margin from markup, and understanding what happens when fees or discounts are added.

What a Retail Pricing Calculator Should Actually Calculate

For a basic retail product with no percentage-based selling fees, the selling price can be calculated from unit cost and target margin:

Selling Price = Unit Cost / (1 - Target Margin)

Target margin must be entered as a decimal in the formula. A 40% target margin therefore becomes 0.40.

For example, if a product has a complete unit cost of $30 and you want a 40% gross margin:

$30 / (1 - 0.40) = $50

The resulting retail price is $50. Gross profit is $20, and $20 is 40% of the $50 selling price.

This is different from simply adding 40% to the $30 cost. Adding 40% would produce a price of $42, which represents a 40% markup on cost but only a 28.57% gross margin.

MerchantCalcs Margin vs. Markup Guide:
https://merchantcalcs.com/guides/margin-vs-markup

Start With the Complete Unit Cost

A retail pricing formula is only as useful as the cost entered into it. Using the supplier invoice price alone can make a product appear more profitable than it really is.

Depending on the business, the relevant unit cost may include:

  • Supplier or manufacturing cost
  • Inbound freight allocated to the unit
  • Import duties and other direct arrival costs
  • Product packaging
  • Labels or preparation required before sale
  • Per-unit fulfillment or handling costs
  • Other costs that occur because the product is prepared for a sale

Imported inventory deserves particular attention.

A $20 factory price is not a $20 retail cost if another $6 per unit is required for freight, duty, insurance and receiving.

The MerchantCalcs Landed Cost Calculator can be used to combine those arrival costs before the retail price is calculated:

https://merchantcalcs.com/calculators/landed-cost

Keep the scope consistent. If your cost input is per unit, every cost added to it should also be expressed per unit.

Do not combine a shipment-level freight invoice with a per-unit product cost without first allocating the shipment expense.

Retail Pricing Formula When Selling Fees Apply

Many retailers and e-commerce sellers also pay fees each time an item is sold. Some are fixed amounts, while others are calculated as a percentage of the selling price.

When the selling price itself determines part of the fee, simply adding the fee to cost is not enough.

A more useful formula is:

Selling Price = (Unit Cost + Fixed Fees) / (1 - Target Margin - Percentage Fees)

This is the approach used by the MerchantCalcs Selling Price Calculator:

https://merchantcalcs.com/calculators/selling-price

It allows the target margin and percentage-based selling fees to affect the required price simultaneously.

For example, suppose a seller has:

Complete unit cost: $28.00

Fixed fee per sale: $0.50

Percentage selling fee: 3%

Target profit margin: 35%

The required selling price is:

($28 + $0.50) / (1 - 0.35 - 0.03)

$28.50 / 0.62 = $45.97

At a $45.97 selling price, the 3% selling fee is approximately $1.38.

After the $28 unit cost, $0.50 fixed fee and percentage fee are removed, about $16.09 remains.

That is approximately 35% of the selling price, matching the target used in the calculation.

Gross Profit, Markup and Selling Profit Are Not the Same Number

Once a retail price has been selected, it is useful to examine it from more than one angle.

Gross Profit

Gross profit is generally the difference between selling price and the direct product cost used for the gross-profit calculation:

Gross Profit = Selling Price - Cost

Using the $45.97 price and $28 unit cost from the example:

$45.97 - $28.00 = $17.97

Gross Profit Margin

Gross profit margin measures that gross profit as a percentage of revenue:

Gross Margin = (Selling Price - Cost) / Selling Price × 100

For the example:

$17.97 / $45.97 × 100 = 39.09%

You can verify this number with the MerchantCalcs Gross Profit Margin Calculator:

https://merchantcalcs.com/calculators/gross-profit-margin

Notice that the gross margin is higher than the 35% profit target used earlier.

That is because the gross-margin calculation above subtracts the $28 product cost but does not subtract the fixed and percentage selling fees.

This distinction is important.

A product can have an attractive gross margin while leaving much less money after payment fees, marketplace commissions, fulfillment, advertising or other order-level costs.

Markup

Markup compares the price difference with cost rather than revenue:

Markup = (Selling Price - Cost) / Cost × 100

Using the same numbers:

$17.97 / $28 × 100 = 64.18%

The product therefore has about a 64.18% markup over the $28 unit cost and a 39.09% gross margin.

Both figures are mathematically correct; they simply answer different questions.

MerchantCalcs Markup Calculator:

https://merchantcalcs.com/calculators/markup

Do Not Choose a Retail Price From Margin Alone

A calculator can tell you what price satisfies a mathematical target.

It cannot tell you whether customers will accept that price.

A practical retail pricing decision should therefore be tested in both directions.

First, calculate the price required by the economics of the product.

Then compare that price with the market, customer expectations, positioning and available substitutes.

If the formula says a product needs to sell for $60 but customers consistently value it at $40, reducing the target margin on a spreadsheet is not the only option.

The underlying business model may need to change.

Possible levers include:

  • Lowering acquisition cost
  • Changing packaging
  • Negotiating fulfillment expenses
  • Increasing average order value
  • Creating bundles
  • Moving the product to a channel with better economics

A retail price that looks competitive but cannot support the business is not automatically a good price.

Check What a Discount Does Before Publishing It

Retail pricing should also leave enough room for promotions.

A percentage discount usually reduces profit much faster than it reduces the selling price because most product costs do not fall when the discount is applied.

Return to the example with a regular selling price of $45.97.

A 15% promotion reduces the customer price to approximately $39.07.

Assuming the $28 unit cost and $0.50 fixed fee remain unchanged and the percentage selling fee stays at 3%, the estimated profit becomes:

Discounted price: $39.07

Percentage fee: approximately $1.17

$39.07 - $28.00 - $0.50 - $1.17 = approximately $9.40

The regular-price profit was approximately $16.09.

The 15% discount therefore cuts the example's per-sale profit by about 42%, even though the customer price falls by only 15%.

This is why discount decisions should be tested against profit rather than revenue alone.

MerchantCalcs Discount Profit Impact Calculator:

https://merchantcalcs.com/calculators/discount-profit-impact

Retail Pricing Becomes More Complex Across Sales Channels

The same SKU may need different economic checks when it is sold through a physical store, a direct-to-consumer website and a marketplace.

A store price may primarily need to recover product cost and store operating expenses.

An online order may also include payment processing, packaging, outbound shipping and advertising.

A marketplace sale may introduce additional percentage and fixed fees.

That does not necessarily mean every channel must display a different consumer price.

It means the seller should know what each channel leaves behind at the chosen price.

For an online order, use the MerchantCalcs E-commerce Profit Calculator after setting the retail price:

https://merchantcalcs.com/calculators/ecommerce-profit

It can model product cost alongside shipping, platform fees, advertising and other order costs so that a healthy gross margin is not mistaken for final order profitability.

A Practical Retail Pricing Workflow

  1. Calculate complete unit cost.

Start with the cost required to get one saleable unit ready for the customer, not merely the supplier quote.

  1. Separate fixed and percentage selling fees.

A $0.50 fee behaves differently from a 3% fee when the selling price changes.

  1. Choose a target margin.

Define the percentage of the selling price that should remain after the costs included in your pricing model.

  1. Calculate the required selling price.

Use the margin formula rather than adding the target margin percentage directly to cost.

  1. Check gross margin and markup separately.

They provide different views of the same retail price.

  1. Model channel-specific costs.

Add shipping, marketplace fees, advertising and other order expenses where relevant.

  1. Test a promotion scenario.

Measure how much unit profit is lost if the product is discounted.

  1. Compare the result with the market.

A mathematically viable price must still make commercial sense to the customer.

Common Retail Calculator Mistakes

One of the most common mistakes is entering an incomplete cost.

A price derived from factory cost can look profitable until inbound freight, packaging and fulfillment are added.

Another common mistake is treating margin and markup as synonyms.

A 50% markup does not produce a 50% margin.

The denominator is different, so using one percentage in place of the other can materially underprice a product.

Sellers can also double-count percentage fees by including them in unit cost and then entering them again as a percentage of price.

Keep fixed costs, percentage-based costs and general overhead clearly separated.

Finally, do not treat the output of a retail calculator as a guaranteed profitable price.

Returns, taxes, advertising, discounts, damaged inventory, overhead and other expenses may sit outside a simplified pricing model.

The purpose of the calculation is to make the assumptions visible enough that they can be tested.

Use the Retail Price as the Start of the Decision

A good retail pricing process connects cost, price and margin instead of applying an arbitrary multiplier to supplier cost.

Start with the complete unit economics, calculate the selling price required for the intended margin, then use gross margin, markup and order-profit calculations to understand what that price actually leaves behind.

As costs, sales channels or promotions change, rerun the calculation.

A retail price that worked with one cost structure may no longer work after freight, fulfillment or selling fees change.

MerchantCalcs calculators are designed for scenario planning.

When a currency option is available, changing the currency changes the display format only; it should not be treated as an exchange-rate conversion.

Use costs expressed consistently in the currency relevant to the scenario you are testing.