What Is Cost of Goods Sold (COGS)?

COGS = Beginning Inventory + Purchases During the Period − Ending Inventory

But for eCommerce sellers, especially those using dropshipping or third-party fulfillment, this formula simplifies into:

COGS = Product Cost + Packaging + Shipping + Customs/Duties

To calculate the cost of goods sold accurately, you need to account for every direct cost that goes into delivering your product to the customer. Here's a practical step-by-step process tailored for eCommerce stores:

1. Start with the cost per unit

This is your base product cost, what you pay your supplier or manufacturer per item. If you purchase in bulk, divide the total cost by the number of units.

2. Add fulfillment and packaging

Include any warehouse pick-and-pack fees, packaging materials (boxes, tape, inserts), and branding costs like custom labels or thank-you cards. These often vary depending on how you fulfill orders (in-house, 3PL, or dropshipping).

3. Include shipping to customers or warehouses

This covers the cost to either ship from your supplier to your fulfillment center or directly to your customers. If you offer free shipping, it should still be included in your COGS since you're covering the cost. For global sellers, you need to account for both international freight and local last-mile delivery fees.

4. Don’t forget transaction-level costs

These are often overlooked. Include customs fees, taxes, currency conversion fees, per-order transaction costs, or processing fees if applicable. For print-on-demand or dropshipping models, these are especially important to track accurately.

5. Track COGS in Real Time - Not at Month-End

Cost of Goods Sold Example

$45 - $22.50 = $22.50

avatar
Tracy Ng

Senior Content Executive at TrueProfit & SEO/Content Specialist

Tracy Ng

Tracy is a senior content executive at TrueProfit – specializing in helping eCommerce businesses scale profitably through content. She has over 4 years of experience in eCommerce and digital marketing editorial writing. She develops high-impact content that helps thousands of Shopify merchants make data-driven, profit-focused decisions.

Let's Collaborate