Cost of goods sold (COGS) tracking

5 min read

Chapter Summary

Sarah discovered her best-selling coffee blend was actually losing money when she included all hidden costs. Learn how to calculate true product costs across multiple platforms and identify which items are genuinely profitable after fees, shipping, and storage costs.

Sarah was celebrating. Her premium Ethiopian coffee blend was flying off the virtual shelves, generating $4,200 in sales the previous month. At a 60% gross margin, she figured she was making around $2,500 profit on this single product. But when she sat down to calculate her actual costs, the celebration ended abruptly.

After accounting for Amazon FBA fees, long-term storage costs, advertising allocation, packaging, and prep services, Sarah's "profitable" premium blend was actually losing $347 per month. Meanwhile, her simple breakfast blend, which she barely promoted, was quietly generating $890 in pure profit with much lower complexity.

"I was running my business based on fantasy numbers," Sarah admits. "I thought I understood my costs, but I was only seeing about half of them."

This revelation led Sarah on a mission to track every penny of her true cost of goods sold across all platforms and products. The insights she gained transformed her entire business strategy.

Why traditional COGS calculations fail in ecommerce

Traditional retail businesses have straightforward COGS calculations where you buy a product for $10, sell it for $20, and your COGS is $10. But ecommerce sellers face dozens of additional costs that traditional accounting doesn't address, including platform referral fees that vary by category, fulfillment fees that change based on size and weight, storage fees that accumulate over time, return processing costs, prep and packaging services, shipping costs to fulfillment centers, and PPC advertising allocated to specific products.

According to the Ecommerce Accounting Institute's 2024 study, online sellers typically underestimate their true COGS by 23-31% when using traditional calculation methods. This underestimation leads to pricing errors, inventory mistakes, and strategic decisions based on inaccurate profitability data.

"The product cost is just the beginning," explains Jennifer Kim, CPA and ecommerce specialist. "In traditional retail, you might have 3-5 cost components. In ecommerce, especially multi-channel selling, you might have 15-20 different costs that all impact your true profitability."

Sarah's COGS awakening: The premium blend reality check

Let's follow Sarah's premium Ethiopian blend through her original calculation vs. her refined COGS analysis:

Sarah's original calculation:

  • Product cost: $8.50 per bag
  • Sale price: $24.99
  • Gross margin: $16.49 (66%)
  • Monthly volume: 180 bags
  • Assumed monthly profit: $2,968

Sarah's refined COGS analysis:

  • Product cost: $8.50
  • Packaging and labels: $1.20
  • Shipping to Amazon: $0.85
  • Amazon referral fee (15%): $3.75
  • Amazon FBA fulfillment: $4.15
  • Monthly storage allocation: $0.47
  • PPC advertising allocation: $3.20
  • True COGS: $22.12
  • Actual profit per unit: $2.87
  • Monthly profit: $517 (83% less than assumed)

The premium blend was barely profitable, and that was before Sarah allocated any of her general business expenses like software subscriptions, business insurance, or her own time.

Building a comprehensive COGS tracking system

Sarah realized she needed to track costs at multiple levels to get accurate profitability data. She developed a system that captured every cost component through three distinct levels.

Level 1 encompassed direct product costs, which are the obvious costs that most sellers track. These include product purchase price or manufacturing cost, packaging materials such as boxes, tape, and inserts, labels and branding materials, initial product photography, and shipping products to fulfillment locations.

Level 2 covered platform-specific costs, where each platform adds unique costs that must be allocated to products. Amazon FBA costs include referral fees varying by category from 6-15%, FBA fulfillment fees based on size and weight, monthly storage fees that are higher for slow-moving inventory, long-term storage fees for products in FBA over 365 days, removal and disposal fees, and prep services if using Amazon's prep. Shopify costs encompass transaction fees of 2.9% plus $0.30 for most plans, payment processing fees, app subscription costs allocated per transaction, and shipping costs for direct fulfillment. Etsy costs include transaction fees of 6.5% of item price plus shipping, payment processing fees of 3% plus $0.25, listing fees of $0.20 per listing, and Etsy Ads costs allocated to products.

Level 3 involved indirect business costs that support sales but aren't directly tied to specific products. These include software subscriptions for inventory management and accounting, professional services like photography and copywriting, general marketing costs, business insurance and licenses, and storage and workspace costs. Sarah learned to allocate Level 3 costs based on sales volume, with higher-volume products bearing proportionally more of the overhead burden.

Platform-specific COGS calculations

Each platform requires different approaches to COGS calculation due to unique fee structures and fulfillment methods. Amazon's complexity requires the most sophisticated tracking. Sarah created a spreadsheet that calculated all FBA costs for each product.

Fixed costs per unit included product cost of $8.50, packaging of $1.20, and prep and shipping to FBA of $0.85. Variable Amazon fees consisted of referral fees calculated as sale price times category rate, which was 15% for coffee, FBA fulfillment fees based on size tier with standard rates ranging from $3.22 to $4.75, and monthly storage calculated as volume times monthly rate of $0.75 per cubic foot. Allocated costs included PPC advertising calculated as 30-day ad spend divided by 30-day unit sales, and long-term storage applied to products over 365 days in FBA.

Sarah's Amazon COGS formula became: Product Cost plus Packaging plus Prep plus Sale Price times Referral Percentage plus FBA Fee plus Storage Allocation plus Ad Allocation.

Shopify calculations are more straightforward but still require careful tracking. Direct costs include product cost, packaging for direct shipping, and shipping labels and materials. Shopify fees encompass transaction fees of 2.9% plus $0.30 and payment processing if different from transaction fees. Fulfillment costs cover shipping cost to customer and pick, pack, and ship labor if using staff or services.

Sarah's Shopify COGS became: Product Cost plus Direct Packaging plus Shipping plus Sale Price times 2.9% plus $0.30 plus Labor Allocation.

Multi-channel inventory costing

Sarah's biggest challenge was tracking inventory costs when the same product sold across multiple platforms with different cost structures. A bag of breakfast blend might cost $6.50 to sell on Shopify but $9.75 to sell on Amazon due to FBA fees.

Sarah's solution was creating platform-specific landed costs for each product. Her Breakfast Blend landed costs varied significantly across platforms. For Shopify, the cost was $6.50 plus $1.10 for packaging plus $0.45 for transaction fees, totaling $8.05. For Amazon, it was $6.50 plus $0.85 for prep plus $3.22 for FBA fees plus $2.18 for referral fees, totaling $12.75. For Etsy, the calculation was $6.50 plus $1.10 for packaging plus $1.30 for fees, totaling $8.90.

This analysis revealed that the same product had dramatically different profitability depending on where it sold, information that proved crucial for inventory allocation and marketing decisions.

Leveraging ProfitSync for automated COGS tracking

Managing COGS calculations across multiple platforms manually consumed hours of Sarah's time each week. She was constantly updating spreadsheets with new fee rates, calculating storage allocations, and trying to track advertising costs across products.

"I was spending more time calculating costs than optimizing them," Sarah recalls. "I needed a system that could handle the complexity automatically while giving me the insights I needed to make better decisions."

This is where ProfitSync transformed Sarah's business operations:

Automated platform fee calculations: ProfitSync automatically applies current fee rates for each platform, updating when platforms change their fee structures.

Real-time storage cost allocation: Instead of manually calculating monthly storage fees, ProfitSync tracks inventory age and automatically allocates storage costs to products.

Advertising cost attribution: ProfitSync connects to advertising platforms and automatically allocates ad spend to products based on actual performance data.

Multi-channel cost comparison: Sarah can instantly see the true COGS for any product across all platforms, making inventory allocation decisions simple.

Profitability alerts: ProfitSync automatically flags when products become unprofitable due to fee changes or increased storage costs.

"ProfitSync eliminated the guesswork and gave me confidence in my numbers," Sarah explains. "I could focus on optimizing profitability instead of calculating it."

Inventory valuation methods for ecommerce

Sarah had to choose how to value her inventory as costs changed over time. Coffee bean prices fluctuated seasonally, and platform fees changed regularly. She needed a consistent method for valuing inventory that supported accurate COGS calculations.

For FIFO (First In, First Out), Sarah's coffee beans were date-sensitive, so FIFO made logical sense. She assumed the oldest inventory sold first, which matched her actual rotation practices. FIFO advantages for Sarah's business included matching physical inventory rotation, providing conservative profit calculations during inflationary periods, and simplifying tracking with date-based inventory management.

For non-perishable items like packaging materials, Sarah used weighted average costing to smooth out price fluctuations. Weighted average benefits included reducing volatility in COGS calculations, simplifying bookkeeping for commoditized inputs, and better matching ongoing business operations.

For limited-edition or specialty items, Sarah tracked specific costs for each batch, allowing precise COGS calculations for unique products using specific identification methods.

Handling returns and damaged goods

Returns create COGS complications that many sellers overlook. When a customer returns a product, what happens to the COGS? Sarah developed specific procedures for different return scenarios.

For sellable returns, she would return COGS to inventory at original cost, reduce current period COGS by returned amount, and track return processing costs separately. For damaged returns, she would write off COGS as loss, track return processing and disposal costs, and use return data to improve packaging and shipping. For Amazon disposals, she recognized that Amazon charges disposal fees for unreturnable items, so Sarah tracks disposal costs as additional COGS and uses disposal data to identify quality issues.

Sarah's coffee business had seasonal cost fluctuations that affected COGS calculations. Holiday season challenges included higher coffee bean costs due to increased demand, increased storage fees due to higher inventory levels, elevated advertising costs driving up allocation per unit, and premium packaging costs for gift-worthy presentation.

Sarah's seasonal COGS strategy involved forecasting seasonal cost changes to plan for higher costs during peak seasons, adjusting pricing proactively by increasing prices before costs spike, optimizing inventory timing by timing purchases to minimize storage fees, and monitoring cost trends to track how seasonal factors affect profitability.

COGS optimization strategies

Once Sarah understood her true costs, she could optimize them systematically through several strategic approaches.

Product mix optimization involved Sarah discontinuing low-margin products and focusing marketing on high-margin items. Her premium blend got replaced by a new medium-roast blend with better margins. Platform allocation meant that products with better margins on specific platforms got preferential inventory allocation. Her breakfast blend performed better on Shopify, so she prioritized Shopify inventory.

Cost reduction initiatives became possible because understanding specific cost components helped Sarah target reduction efforts. She negotiated better coffee bean prices with suppliers, optimized packaging to reduce FBA fees, improved product photography to reduce return rates, and refined PPC campaigns to lower advertising allocation.

Pricing strategy refinement emerged as accurate COGS data enabled smarter pricing decisions. This included platform-specific pricing based on different cost structures, dynamic pricing that maintained target margins, and bundle pricing that improved overall profitability.

For implementing your own COGS transformation, Week 1 should involve auditing current costs by listing every cost associated with your products, identifying costs you're not currently tracking, and calculating current COGS accuracy level. Week 2 requires building tracking systems by setting up platform-specific cost tracking, creating allocation methods for indirect costs, and implementing inventory valuation methods. Week 3 focuses on analyzing profitability by calculating true COGS for all products, identifying most and least profitable items, and comparing profitability across platforms. Week 4 emphasizes optimizing and automating by implementing cost reduction strategies, setting up automated tracking with tools like ProfitSync, and creating monthly COGS review processes.

Sarah's journey from fantasy profits to real profitability took four months of systematic work, but the insights transformed her business. She increased overall profitability by 34% by optimizing her product mix and focusing on truly profitable items.

In Chapter 5, we'll dive deep into platform fees and transaction costs, where Sarah learns to track and optimize the dozens of fees that can make or break ecommerce profitability. You'll discover hidden fees you might not know exist and learn strategies to minimize their impact on your bottom line.