The Real Cost of Selling a Product Online (COGS Mistakes That Kill Your Margins)
Your accounting software says your gross margin is 62%. Your Shopify dashboard agrees. But when you look at what you actually keep after a strong sales month, the number feels much smaller than 62% of your revenue.
The culprit is often not your pricing, your ad spend, or your overhead. It is your cost of goods sold, commonly shortened to COGS. If you are not capturing all of the true costs that go into delivering a product to a customer, your gross margin is inflated, your profit is overstated, and every decision you make based on those numbers is built on a shaky foundation.
What COGS Means and Why It Matters
Gross margin is the percentage of revenue left after subtracting the cost of making or acquiring the products you sold. If you sell a product for $40 and it cost you $16 to produce and deliver, your gross margin is 60%.
COGS is the total of all those costs. It is the denominator in your gross margin calculation. Get COGS wrong, and gross margin is wrong. Get gross margin wrong, and you cannot accurately calculate contribution margin, net profit, or a safe owner draw. Every financial number downstream of COGS inherits the error.
The challenge is that COGS is not just one line item. It is a collection of costs, some obvious and some easy to miss, that all belong in the same bucket.
What Belongs in COGS
Product and Manufacturing Cost
The most obvious component. If you manufacture your own products, COGS includes raw materials, direct labor (the people physically making the product), and manufacturing overhead (the cost of running the facility where it is made, allocated per unit). If you buy finished products wholesale or from a supplier, COGS is your landed cost per unit before it reaches your warehouse.
Landed cost means the supplier invoice price plus everything it took to get the product to your door, which leads directly to the next item.
Inbound Freight and Shipping to Your Warehouse
The cost to move inventory from your supplier to your warehouse or fulfillment center belongs in COGS. This includes ocean freight, air freight, last-mile delivery to your warehouse, and any fuel surcharges or handling fees charged by your freight forwarder.
Many store owners put freight on a separate expense line or simply forget to include it. If your supplier charges you $14 per unit and shipping costs an additional $1.80 per unit to get it to your warehouse, your true product cost is $15.80. Using $14 in your COGS calculation overstates gross margin from the start.
Duties, Tariffs, and Import Fees
If you import goods from another country, you pay customs duties when the products enter the country. These costs are directly tied to the product and belong in COGS alongside the product cost and freight.
In 2025 and 2026, tariff rates on many imported consumer goods increased significantly. A duty rate that was negligible a year ago might now represent a material cost per unit. If your COGS calculation predates those rate changes and you have not updated it, your reported margins are almost certainly overstated.
Packaging Materials
Boxes, mailers, tissue paper, inserts, stickers, tape, void fill, and branded packaging all belong in COGS. These are direct costs of the product as the customer receives it. A product is not complete until it is ready to ship, and it is not ready to ship without its packaging.
This is one of the most commonly missed COGS components. Packaging feels like a small line item, but it compounds across order volume in ways that add up quickly. More on that below.
Fulfillment and Pick-Pack Fees
If you use a third-party logistics provider (3PL) to store and ship your products, the fees they charge to pick, pack, and ship each order belong in COGS. These are direct costs of fulfilling a sale.
Common 3PL fees that belong in COGS include the per-order pick-and-pack fee, the per-item fee for multi-unit orders, and outbound shipping costs paid by you (the amount your 3PL charges you to ship the package, not what the customer paid for shipping).
Receiving fees and storage fees are more nuanced. Receiving fees (charged when inventory arrives at the warehouse) are a direct cost of the product and belong in COGS. Monthly storage fees are more often treated as an operating expense because they do not vary directly with each sale, but many accountants include them in COGS.
Merchant Processing Fees
Every time a customer pays by card, a percentage goes to the payment processor. This fee is directly tied to the transaction and is a real cost of completing a sale.
Merchant processing fees typically run between 2.4% and 3.5% of the transaction amount. On a $60 order, that is $1.44 to $2.10 per sale, every sale. Some store owners track this as an operating expense, and there is legitimate debate about its correct classification. But if you treat it as an operating expense and it does not show up in your COGS, your gross margin looks better than it actually is at the unit level.
For a business doing $500,000 per year in revenue, processing fees at 2.8% are $14,000 per year. Leaving that out of your unit economics is a meaningful omission.
What Does NOT Belong in COGS
These costs are real and important, but they belong below the gross margin line as operating expenses, not in COGS.
Advertising and marketing spend. Your Meta ads, Google campaigns, influencer fees, and email platform costs are not part of the cost of making or fulfilling a product. They are the cost of finding customers, and they belong in operating expenses.
Software subscriptions. Your Shopify plan, accounting software, customer service tools, and analytics platforms are overhead. They do not change based on what it cost to produce each unit sold.
Salaries for non-production staff. Customer service, marketing, finance, and operations staff salaries are operating expenses. Only labor that directly makes or assembles the product belongs in COGS as direct labor.
Rent and utilities for your office. If you have office space or a headquarters separate from your production facility, that rent is an operating expense. Warehouse or storage costs tied to inventory may be partially allocated to COGS, but a general office is not.
The reason this distinction matters is that gross margin measures the profitability of your products. Operating expenses measure the cost of running the business. Mixing them together makes it impossible to know which products are genuinely profitable and which ones only look profitable because you are not counting all their costs.
The Compounding Math of a Missed $0.50
Here is how a single overlooked cost can misstate your financials in a meaningful way.
You sell a skincare product for $35. Your supplier charges you $8 per unit. You use a custom box and tissue paper that cost $0.80 per order. You ship via a 3PL that charges $4.20 per order. Processing fees run $0.90 per order.
If you only record the supplier cost in COGS, your unit cost looks like $8 and your gross margin looks like 77%.
If you capture all direct costs, your unit cost is $13.90 and your gross margin is 60%.
That 17-point difference compounds fast. At 10,000 orders per year, the undercounted costs total $59,000. Your profit and loss statement shows $59,000 more in gross profit than your business actually generated. If you use that inflated gross margin to make decisions, including how much to spend on ads, whether to expand product lines, or how much to pay yourself, those decisions are based on money that does not exist.
The scale of the error grows with your order volume. At 50,000 orders, the same $5.90 per-order gap is $295,000 of phantom profit.
How Miscategorized Costs Inflate Reported Margins
The specific pattern that creates the most damage is treating fulfillment costs as operating expenses when they belong in COGS.
A store owner might look at their P&L and see a 70% gross margin. They feel confident the business is healthy. But if their 3PL pick-pack fees ($3.50 per order), outbound shipping ($5.80 per order), and packaging materials ($0.90 per order) are sitting below the gross margin line as operating expenses, the true gross margin after all fulfillment costs might be closer to 52%.
That 18-point gap changes every meaningful decision. A product launch that looks viable at 70% gross margin might not clear the contribution margin threshold once the true cost of delivering it is counted. A discount campaign that looks safe at 70% might actively destroy margin at 52%.
The miscategorization does not make the costs go away. It just hides them from the number most store owners use to make decisions.
FIFO vs. LIFO: When Supplier Costs Change
If your supplier raises or lowers prices over time, the order in which you count your inventory costs affects your reported COGS.
FIFO (First In, First Out) assumes you sell older inventory before newer inventory. If your supplier raised prices recently, FIFO means your COGS reflects the older, lower prices until that inventory is sold. Your margins look better in the short term but will catch up when the newer, higher-cost inventory moves.
LIFO (Last In, First Out) assumes the most recently purchased inventory is sold first. If costs are rising, LIFO produces higher COGS and lower reported margins, which more closely reflects the current cost of replacing inventory. LIFO is not permitted under international accounting standards (IFRS), though it is still used under US GAAP.
Most small ecommerce businesses use a weighted average cost method or simply use their most recent supplier price as the current unit cost. The key point is to know which method you are using, apply it consistently, and update your per-unit cost whenever supplier pricing changes materially. A tariff increase that raises your landed cost by $1.50 per unit should be reflected in your COGS calculation immediately, not absorbed silently into your margins.
How Nummbas Shows You True Margins
The difficulty with getting COGS right is that the inputs live in different places. Your supplier invoices are in your email or accounting software. Your 3PL fees are on a monthly invoice or in a dashboard. Your processing fees are deducted automatically before your payout lands. Packaging costs may be in a separate spreadsheet you built at launch and have not updated since.
Pulling all of that together manually is time-consuming, and the numbers go stale quickly as costs change.
Nummbas connects to your store, your fulfillment provider, and your accounting software to pull actual cost data and calculate true margins at the product and order level. When your 3PL raises its per-order fee or your packaging supplier changes prices, that change flows through to your margin calculations without requiring a manual update to a spreadsheet. You can see your real gross margin, updated with current costs, at any point.
The goal is not to give you a better-looking number. It is to give you an accurate one, because an accurate number is the only kind that helps you run a business.
The Bottom Line
COGS is not just the invoice from your supplier. It is everything that goes into getting a product made and into a customer's hands: product cost, inbound freight, duties, packaging, fulfillment fees, and processing fees. Leave any of those out and your gross margin is overstated.
Operating expenses like ad spend, software, and salaries belong below the gross margin line. Mixing them into COGS distorts your unit economics in the other direction.
The compounding effect of small per-unit errors across thousands of orders is large enough to change what your business actually looks like financially. Getting COGS right is not an accounting detail. It is the foundation of every margin calculation, pricing decision, and profitability number your business produces.