How to Calculate Unit Price for Your Ecommerce Products: Complete Guide
By Braincuber Team
Published on March 3, 2026
A D2C candle brand we audited was selling their signature jar at $14.99 — and losing $1.23 on every single unit. They knew their wax cost. They knew their jar cost. But they forgot to allocate their $6,000/month in fixed overhead across their 2,000-unit production run. That $3/unit they never accounted for turned a "profitable" product into a $2,460/month cash drain. This beginner guide is the complete tutorial on never making that mistake.
What You'll Learn:
- How to calculate unit price (what customers pay per unit) with the exact formula
- How to calculate unit cost (what it costs you to produce one unit)
- The difference between cost per unit and price per unit — and why confusing them kills margins
- How to break down fixed costs vs. variable costs for accurate COGS
- Real worked examples with actual dollar figures you can follow
- How to use unit pricing to compare supplier offers and pick the best deal
- Setting up Shopify product cost tracking so your margins are always visible
The $3 Difference That Bankrupts D2C Brands
Most founders know their raw material cost per unit. Very few know their total cost per unit. That gap — the untracked fixed overhead divided across production volume — is where margins go to die.
Unit price and unit cost sound like the same thing. They're not. Confuse them and you'll set retail prices based on incomplete data, congratulate yourself on "healthy margins," and wonder 8 months later why your bank balance keeps shrinking.
| Term | Who Cares About It | What It Measures | Formula |
|---|---|---|---|
| Unit Cost | You (the seller) | Your expense to produce/acquire one unit | Total Costs / Units Produced |
| Unit Price | The customer | What the buyer pays per unit of measurement | Total Price / Quantity |
The Mistake Everyone Makes
Your unit cost must always be lower than your unit price. Sounds obvious. But when you forget to include rent, insurance, salaries, and marketing in your cost calculation, your "50% margin" product is actually running at negative margin. We see this in roughly 3 out of every 10 D2C brands we audit.
How to Calculate Unit Price (The Customer's View)
Unit price tells customers what they're paying per unit of measurement — per ounce, per count, per pound. It's the number that lets shoppers do an honest comparison between a 32-ounce carton at $4 and a 64-ounce carton at $6.40. Without it, the $4 sticker price looks cheaper. It's not.
Find the Item's Total Price
This is the sticker price — what the customer pays at checkout or the cash register. On Shopify, it's the price you set in your product listing. If you're comparing supplier quotes, it's the invoice total for the lot. Grab the exact number, not an estimate.
Identify the Total Quantity and Unit of Measure
Check the package label for the total quantity. This could be measured in weight (ounces, pounds, kilograms), volume (fluid ounces, liters), or count (rolls, tablets, bars). A 6-pack of paper towels = 6 rolls. A 32oz juice carton = 32 ounces. Get this number exact — it's your denominator.
Ensure You Are Using the Same Unit
This is where most comparison errors happen. You can't compare ounces to pounds, or liters to fluid ounces. If one supplier quotes per kilogram and another per pound, convert one to match the other before dividing. A $12/kg quote and an $8/lb quote look like the $8 wins — until you realize 1 kg = 2.2 lbs, making the per-pound rate actually $5.45. The kg supplier was cheaper all along.
Divide Total Price by Number of Units
The formula: Unit Price = Total Price / Number of Units. Paper towel example: Package A is 6 rolls for $9.99. Package B is 8 rolls for $12.49. Brand A: $9.99 / 6 = $1.67/roll. Brand B: $12.49 / 8 = $1.56/roll. Package B is 11 cents cheaper per roll. Over a year buying 52 packages, that's $5.72 saved on paper towels alone. Now imagine applying this logic to your raw material sourcing across 37 SKUs.
UNIT PRICE (Customer View)
Unit Price = Total Price / Number of Units
Example: $6.40 / 64 oz = $0.10 per ounce
UNIT COST (Seller View)
Unit Cost = (Total Fixed Costs + Total Variable Costs) / Units Produced
Example: ($6,000 + $8,000) / 2,000 units = $7.00 per unit
PROFIT CHECK
Unit Price (what you charge) MUST be > Unit Cost (what it costs you)
Margin = Unit Price - Unit Cost
Margin % = ((Unit Price - Unit Cost) / Unit Price) x 100
How to Calculate Unit Cost (The Seller's View)
This is your number. The one that determines whether you're building a business or subsidizing your customers' purchases. Unit cost includes everything it takes to produce or acquire one unit — raw materials, labor, packaging, rent, insurance, and the electricity bill for your warehouse.
Identify Total Fixed Costs
Fixed costs don't change regardless of how many units you produce. For a candle company producing 2,000 units/month: Workshop rent: $1,500, Salaries (manager + admin): $4,000, Insurance: $200, Website and marketing subscriptions: $300. Total fixed costs = $6,000/month. These numbers stay the same whether you produce 100 candles or 10,000. That's exactly what makes them dangerous — founders forget to divide them across units.
Determine Total Variable Costs
Variable costs scale with production volume. Same candle company: Wick, wax, and fragrance: $2.00, Glass jar and lid: $1.25, Label and packaging box: $0.75. Variable cost per candle = $4.00. Total variable costs for the month: $4.00 x 2,000 candles = $8,000. Watch for step costs too — things that are fixed until a threshold, like hiring a second warehouse picker when orders pass 1,500/month.
Combine for Total Production Cost
Total Cost = Total Fixed Costs + Total Variable Costs. For our candle company: $6,000 + $8,000 = $14,000/month. This is the total expense before a single candle generates a dollar of revenue. If you only track variable costs ($8,000), you're pretending $6,000 in monthly bills doesn't exist. That's how you sell 2,000 candles and still can't make payroll.
Calculate Cost Per Unit
Unit Cost = Total Cost / Number of Units Produced. $14,000 / 2,000 candles = $7.00 per candle. That means every candle must sell for more than $7 to generate any profit. If you set your price at $14.99, your actual margin is $7.99/unit (53.3%). But if you only tracked variable costs, you'd think your cost was $4 and your margin was $10.99 (73.3%). That 20-point margin gap is the difference between a sustainable business and a slow-motion collapse.
Setting Up Unit Cost Tracking in Shopify
Knowing the formula is useless if you don't track it in your system. Here's how to make unit costs visible in your Shopify admin so you see margin data on every product, every day.
Enter Cost Per Item in Shopify Product Settings
Go to Shopify Admin > Products > [Your Product] > Pricing. You'll see a "Cost per item" field. Enter your fully-loaded unit cost here — not just the material cost. Include your allocated fixed overhead. For our candle example, enter $7.00, not $4.00. Shopify will auto-calculate your margin and profit per unit on the product page. Do this for every SKU. *(Yes, it takes a Saturday. Do it anyway.)*
Monitor Margins with Shopify Profit Reports
Once cost-per-item is set, go to Shopify Admin > Analytics > Reports > Profit by product. This shows you margin percentage and profit dollars per SKU. Sort by lowest margin first. If any product shows less than 30% margin after fully-loaded costs, you have a pricing problem. Either raise the price, renegotiate supplier costs, or discontinue that SKU before it drains cash from your winners. Run this report monthly — material costs change, and the $7 unit cost from January might be $8.15 by June.
Fixed Costs Are Invisible Killers
Rent, salaries, and insurance don't appear on your COGS line in Shopify. But they're real costs that must be recovered through your selling price. Divide monthly fixed costs by monthly units produced to get the per-unit overhead allocation.
Volume Changes Everything
At 2,000 units, your fixed cost allocation is $3/unit. Drop to 1,000 units (slow month), and it jumps to $6/unit. Your unit cost just went from $7 to $10 — but your price didn't change. Low-volume months destroy margins unless you plan for them.
Supplier Negotiation Leverage
When you know your exact unit cost breakdown, you can negotiate with suppliers on the specific line item that matters. "Can you get the jar cost from $1.25 to $1.05?" is a $400/month savings at 2,000 units. That's $4,800/year from one conversation.
Bundle Pricing Gets Easier
Once you know unit cost, bundle pricing is arithmetic. A 3-candle bundle at $39.99 = $13.33/unit price vs. $7.00 unit cost = $6.33 profit per candle. Compare that to your single-unit $14.99 price at $7.99 profit. The bundle makes less per candle but moves 3x the volume.
Don't Forget Shipping in Your Unit Cost
If you offer "free shipping," it's not free to you. A $4.50 shipping cost on a $14.99 candle eats 30% of your gross margin. Either bake shipping into your unit cost calculation or set a minimum order threshold. We've seen brands hemorrhage $3,200/month in unrecovered shipping costs because they treated it as a "marketing expense" instead of a per-unit cost.
Frequently Asked Questions
What is the difference between unit price and retail price?
Retail price is the total amount charged for an item regardless of its size. Unit price breaks that retail price down to the cost per single unit of measurement (per ounce, per count, per pound). For a single candy bar, they're the same. For a 12-pack, the retail price is one number and the unit price is 1/12th of that.
How do I calculate unit price in Excel or Google Sheets?
Put the total price in cell A1 and the number of units in cell B1. In cell C1, enter the formula =A1/B1. That gives you the unit price. For bulk comparisons, add rows for each supplier and sort column C to find the lowest cost per unit instantly.
Should I include shipping costs in my unit cost calculation?
Yes, if you offer free shipping. The cost doesn't disappear — it shifts from the customer to you. Add your average shipping cost per order to your unit cost. A $7 unit cost + $4.50 shipping = $11.50 true cost. Your selling price must cover $11.50, not $7.
How often should I recalculate my unit cost?
At minimum quarterly, or whenever a cost input changes — new supplier prices, rent increases, staffing changes, or production volume shifts. Raw material costs can swing 15-20% in a single quarter. The unit cost you calculated in January may be dangerously inaccurate by April.
What minimum margin should I target after fully-loaded unit costs?
For D2C ecommerce, aim for at least 60-70% gross margin on fully-loaded unit costs if you're running paid ads. After ad spend (typically 20-30% of revenue), you need enough margin left for operations and profit. Below 50% margin, most Shopify brands can't profitably acquire customers through paid channels.
Still Guessing Your Unit Costs in a Spreadsheet?
We'll audit your product costs, set up fully-loaded unit cost tracking in Shopify, and build the margin dashboards that show you exactly which SKUs are making money and which ones are quietly bleeding you dry. Stop guessing. Start knowing.
