How do I track cost of goods sold for e-commerce products?
COGS for e-commerce includes everything you spend to get products ready to sell. That means the purchase price from your supplier plus inbound shipping, packaging materials, and any customs or duties if you import. This total is called your landed cost, and it’s what matters for tracking profitability.
Most e-commerce sellers use accounting software like QuickBooks connected to their sales platforms. Shopify, Amazon, and Etsy can sync sales data into your books. But recording sales is only half the equation. You also need to track what each product costs and reduce inventory when items sell.
If you carry inventory, set up products as inventory items in your accounting software with accurate costs. When you receive a shipment, record the purchase and add to inventory. When you sell, COGS should pull from inventory automatically. This perpetual inventory method keeps your books accurate without manual adjustments every time something ships.
The challenge comes when costs fluctuate. Your supplier raises prices, shipping rates change, or you find a cheaper source. Update your item costs when this happens. Using outdated costs means your COGS is wrong and your margins look better or worse than reality.
For Amazon FBA sellers, keep FBA fees separate from COGS. The product and getting it to Amazon’s warehouse is COGS. The referral fees, fulfillment fees, and storage fees are selling expenses. Mixing these makes it impossible to know if a product is profitable before Amazon takes their cut.
Multi-channel selling adds complexity. If you sell the same product on Shopify, Amazon, and Etsy, you need consistent COGS regardless of channel. The margin might differ due to platform fees, but the underlying product cost stays the same.
Inventory management apps like A2X, Cin7, or DEAR Inventory can automate much of this. They pull sales from all your channels, calculate COGS using your item costs, and push accurate numbers into QuickBooks. An Andover, MA bookkeeping service familiar with e-commerce accounting can help set up these integrations correctly from the start.
The goal is knowing your true gross margin by product. If something costs $12 landed and sells for $30, your gross margin is $18 or 60%. If you’ve been recording cost as $8 because you forgot shipping and packaging, you think you’re making 73% when you’re actually at 60%. That difference matters when deciding which products to promote, discount, or discontinue.
The Merrimack Valley's Trusted Accounting Partner
The Next Step:
A 15-Minute Call
Tell us about your business and what you're dealing with. We'll listen, ask a few questions, and give you a straightforward quote.
More Questions
What are the most common QuickBooks setup mistakes?
The most common QuickBooks setup mistakes include using default chart of accounts without customization, choosing the wrong accounting method, and entering incorrect opening balances. These errors compound over time and become harder to fix.
Read answerHow do I track labor costs as a percentage of sales?
Divide total labor costs by total sales, then multiply by 100. The formula is straightforward, but the value comes from tracking it consistently, including all labor-related expenses, and using the results to make staffing decisions.
Read answerHow do I classify workers correctly to avoid IRS penalties?
The IRS evaluates three factors: behavioral control, financial control, and the type of relationship. Massachusetts applies an even stricter test. Getting this wrong means back taxes, penalties, and interest that add up fast.
Read answerHow do I fix past sales tax compliance issues?
Start by determining the scope of what you owe and which states are affected. Voluntary Disclosure Agreements can significantly reduce penalties, and filing late is almost always better than waiting to get caught.
Read answerHow do I manage accounts receivable for a medical practice?
Medical practice AR requires managing two collection streams: insurance companies and patients. Success depends on clean claim submission, systematic denial management, and prompt patient billing once insurance pays their portion.
Read answerHow do I manage payroll for a multi-provider practice?
Multi-provider practices require payroll systems that handle varied compensation structures like production bonuses, percentage of collections, and guaranteed draws. The key challenges are tracking revenue by provider, maintaining proper classification, and integrating with practice management software.
Read answer

