Skip to content

Wholesale Price Formula: Cost to Shelf, and Back

The wholesale price formula worked forward from cost and backward from the shelf price, with a shop's and a distributor's margin and a calculator to download.

By Koa Sterling. Product specialist at TaroStack and small business owner. Yes, I am a real human, and I actually sit in front of a computer and write these articles. Reviewed November 21, 2026 · 7 min read

The wholesale price formula is wholesale price = cost ÷ (1 − your margin). A tin that costs $2.40 to make, sold at a 50% margin, wholesales at $2.40 ÷ 0.5 = $4.80. That's the easy half. The formula runs on from there, because the shop adds its own margin to reach the shelf price, and a distributor takes a margin out of yours: shelf price = wholesale ÷ (1 − shop's margin), and price to a distributor = wholesale × (1 − distributor's margin). And it runs backward, which is how most products are really priced: start from the shelf price shoppers will pay and work down to the cost you can afford. Below are both directions for a made-up maker of spice rubs, what each channel leaves, and a calculator. Every margin is the example's own.

The short version

  • Wholesale price = cost ÷ (1 − your margin).
  • Shelf price = wholesale price ÷ (1 − the shop's margin).
  • Price to a distributor = wholesale price × (1 − the distributor's margin).
  • Margin is a share of the price. Markup is a share of the cost. Don't mix them.
  • Work backward from the shelf price to find the cost you have to hit.
  • "Half of retail" is a shortcut. Check it against your cost before you print a price list.
  • TaroStack keeps the real cost under each price, batch by batch. More below.

Forward: from cost

Product Cost to make Wholesale price Shelf price Price to a distributor Left through a distributor Margin through a distributor
Smoky chili rub, 4 oz tin $2.40 $4.80 $8.73 $3.60 $1.20 33.3%
Lemon pepper rub, 4 oz tin $2.10 $4.20 $7.64 $3.15 $1.05 33.3%
Steak rub, 8 oz shaker $3.90 $7.80 $14.18 $5.85 $1.95 33.3%
Gift box of three tins $8.60 $17.20 $31.27 $12.90 $4.30 33.3%

The three margins behind the table: this maker wants 50% at wholesale, the shops it sells to work on 45%, and its distributor takes 25%.

Step by step, for the chili rub:

  1. Cost: $2.40. Spices, the tin, the label, and the time to blend and fill, with a share of overhead. If this number is wrong, everything after it is. How to build it is in steps in recipe costing.
  2. Wholesale: $2.40 ÷ (1 − 0.50) = $4.80. The price a shop pays you.
  3. Shelf: $4.80 ÷ (1 − 0.45) = $8.73. The shop will round it, most likely to $8.99.
  4. Distributor: $4.80 × (1 − 0.25) = $3.60. The distributor sells to shops at your $4.80 and keeps $1.20.
  5. What's left: $3.60 − $2.40 = $1.20, a third of what the distributor pays you.

Your 50% became 33%. The distributor's 25% comes out of your price, not on top of it, because the shop still expects to pay $4.80. A maker who sets wholesale at a margin that only just works has nothing to give a distributor. What a distributor does for that share is in distributor margin.

Margin or markup

The two words get swapped, and they aren't the same number.

Formula On a $2.40 cost and a $4.80 price
Margin (price − cost) ÷ price 50%
Markup (price − cost) ÷ cost 100%

A shop that says it "marks up 45%" and a shop that "works on a 45% margin" are describing different prices: $4.80 × 1.45 = $6.96 against $4.80 ÷ 0.55 = $8.73. Ask which they mean. The long version is in markup vs margin.

Backward: from the shelf

The forward sum tells you what the shelf price comes to. The market doesn't care. If rubs like yours sell for $8.99, that's the number to start from.

Chili rub, 4 oz tin
Shelf price shoppers will pay $8.99
Shop's margin, 45%: wholesale price $4.94
Distributor's margin, 25%: price to the distributor $3.71
Cost $2.40
Left selling to shops yourself $2.54, 51.5%
Left through the distributor $1.31, 35.3%

Here the two directions agree: a $2.40 cost supports an $8.99 shelf price with a little to spare. They often don't. The same table says what the cost has to be: for 50% selling to shops yourself, no more than $2.47. For 40% through the distributor, no more than $2.22. If your tin costs $2.90, the choices are a higher shelf price, a cheaper tin, or no distributor.

"Wholesale is half of retail." Doubling at each step is a common shortcut, described in keystone pricing. It gives the shop a 50% margin. Whether it gives you one depends entirely on your cost, which the shortcut never looks at. This maker's website price is $9.00, so half is $4.50: 30 cents under the $4.80 its own formula asks for, and at $4.50 a distributor's price would be $3.38, leaving 98 cents on a tin.

What each channel leaves

A month Tins Price Sales Left
Direct, website and markets, 3% fees 200 $9.00 $1,800 $1,266
To shops 250 $4.80 $1,200 $600
Through the distributor 150 $3.60 $540 $180
Total 600 $3,540 $2,046

A direct tin leaves $6.33, a shop's tin $2.40, a distributor's $1.20. Direct sales are a third of the tins and 62% of what's left. That isn't an argument against wholesale. A direct sale costs a market day or a parcel to pack, and none of that is in the $2.40. It's the reason to know all three numbers before agreeing to any of them.

The pages that go with a price: price list template, line sheet template and wholesale order form template. For handmade goods the same sum is in how to price handmade items for wholesale.

Get the calculator

Download the wholesale price calculator. One sheet and a read-me: type each product's cost, the margin you want at wholesale, the shop's margin, the distributor's and your direct price. It works out the wholesale price, the shelf price, the price to a distributor and what each leaves. It's an ordinary Excel file with no macros, and it works in Google Sheets, LibreOffice and Numbers.

Where this stops working

Every line of the formula hangs from the cost, and the cost is a number somebody typed in last spring. Since then paprika has gone up, the tins come from a different supplier, and a batch of steak rub came out twelve shakers short. The price list still says $4.80. Nobody decided to give up four points of margin. It happened one delivery at a time.

How TaroStack does it

TaroStack keeps the cost current, so the formula has something true to start from.

Each delivery comes in at what you paid, freight included.

Recipes with true cost, worked from those deliveries, and each batch costed from the lots it used.

A price-creep report per supplier shows which ingredient has moved.

Customers and sales orders for shops and the distributor.

Margins by product and by customer, on what things actually cost.

The question Spreadsheet In TaroStack
What does a tin cost now Last spring's number From current lots
Which ingredient moved Compare invoices Price creep, per supplier
Is the distributor's price still worth it Redo the sum Margin by customer
What did the short batch cost Not known Actual against standard

TaroStack doesn't keep a separate price list for each customer: the price is what you put on the order. Recipes, batches and margins are on every plan, from $9.99 a month (5 recipes) or $39 a month (50 recipes). The first 14 days are free, with no credit card. If you'd like a hand setting up, ask, and we'll do it with you.

Questions people also ask

What is the formula for wholesale price?

Wholesale price = cost ÷ (1 − your margin). A product that costs $2.40, at a 50% margin, wholesales at $4.80. As a markup, the same price is cost × 2.

How do I work out wholesale price from the retail price?

Multiply the shelf price by one minus the shop's margin. An $8.99 shelf price at a 45% shop margin is a wholesale price of $4.94. Then check that price against your cost.

How much margin does a distributor take?

Whatever you agree with them. In this example it's 25% of the wholesale price, which takes the maker's own margin from 50% to 33%.

We use AI to help with the research for these articles. Every one is read, checked against its sources and edited by Koa before it's published. Spot a mistake? Tell us and we'll fix it and say so. How we write these.

Let’s get your stack in order.

Get TaroStack

Sign up now for your free 14 day trial. No credit card required.