Bookkeeping for Ecommerce

You grew sales. Now grow profit.

Revenue is vanity, profit is sanity. Here's everything ecommerce sellers need to know about bookkeeping — from COGS to sales tax to knowing your real margins.

In this guide
  1. Why ecommerce bookkeeping is different
  2. Understanding COGS (cost of goods sold)
  3. Sales tax: what ecommerce sellers need to know
  4. Revenue recognition: when did you actually earn that money?
  5. Calculating your true profit margin
  6. Tax deductions for ecommerce sellers
  7. When to get a CPA vs. doing it yourself
  8. Multi-channel selling: keeping the books straight
  9. Inventory methods: FIFO, LIFO, and weighted average
  10. Your first 30 days: getting ecommerce books set up

Why ecommerce bookkeeping is different

If you're selling online — Shopify, Etsy, Amazon, your own site — your bookkeeping is more complex than most businesses:

Understanding COGS (cost of goods sold)

COGS is the single most misunderstood concept in ecommerce bookkeeping. Here's what it is and why it matters:

What counts as COGS

What does NOT count as COGS

Why the distinction matters

COGS is subtracted from revenue to calculate gross profit — your most important number. Gross profit margin tells you whether your business model works before you even consider operating expenses.

Example: You sell $100K in products. Your COGS is $60K. Gross profit = $40K (40% margin). If your operating expenses (ads, software, labor) are $50K, you're losing $10K despite $100K in revenue. Without tracking COGS separately, you wouldn't see this coming.

The inventory-COGS connection

When you buy 100 units at $10 each, you record $1,000 in inventory (an asset). When you sell 30 units, you move $300 from inventory to COGS (an expense). This is called "capitalizing" inventory — you don't get the tax deduction until you sell.

Track inventory and COGS automatically

Hivebooks' inventory module connects to your sales channels and tracks units sold, COGS per item, and remaining inventory in real time. See your gross profit margins by product, by month, and by sales channel — no spreadsheets required.

Start Free →

Sales tax: what ecommerce sellers need to know

Post-South Dakota v. Wayfair (2018), selling online got significantly more complicated. You can now owe sales tax in states where you have no physical presence.

Physical nexus

You have sales tax nexus in any state where you have:

Economic nexus

Most states now require you to collect sales tax if you exceed a sales threshold in that state — typically $100,000 in sales or 200 transactions per year. Every state sets its own thresholds.

What this means for bookkeeping

Sales tax you collect is not your income — it's a liability. You're holding it for the state. If you record $10,000 in sales that includes $800 in sales tax, your actual revenue is $9,200. Your books need to track this separately or your income statement will be inflated.

Automate it: Use TaxJar, Avalara, or Quaderno to handle calculations and filings. They integrate with Shopify, WooCommerce, etc. You still need your bookkeeping to reflect the amounts correctly.

Revenue recognition: when did you actually earn that money?

When should you record a sale? It's not as obvious as it seems.

Cash basis (simpler, most common)

You record revenue when payment hits your bank account. If a customer orders on January 30 and Stripe deposits on February 2, it's February revenue. Most small ecommerce businesses use cash basis.

Accrual basis (more accurate)

You record revenue when the sale happens, regardless of when you get paid. That January 30 order is January revenue even though the money arrives in February. Accrual gives you a more accurate picture of monthly performance.

IRS rule: If your average annual gross receipts exceed $25 million over three years, you must use accrual. Everyone else can choose.

Refunds and chargebacks

A refund isn't an expense — it's negative revenue. If you sold a $100 item and refunded it, you didn't earn $100 and spend $100. You earned $0. Record refunds as negative revenue or create a "Sales Returns" contra-revenue account.

Chargebacks are similar but uglier — you lose the sale and pay a $15-25 chargeback fee. Track the revenue reversal and the fee separately.

Sync Stripe, Shopify, and PayPal automatically

Hivebooks connects to your payment processors and ecommerce platforms. Sales, refunds, fees, and payouts sync automatically. Set categorization rules once and your books update themselves. Review transactions weekly instead of entering them manually.

Start Free →

Calculating your true profit margin

Gross revenue means nothing. Here's what actually matters:

The margin stack

  1. Gross Revenue: Total sales (minus refunds and sales tax)
  2. Minus COGS: What you paid for the products you sold
  3. = Gross Profit (this is your true revenue after product costs)
  4. Minus Operating Expenses: Ads, software, labor, shipping to customers, fees
  5. = Net Profit (what you actually made)

Example: $100K in sales

That $100K in revenue generated $19K in profit. If you weren't tracking COGS and operating expenses separately, you might think you're doing better than you are.

Tax deductions for ecommerce sellers

Ecommerce businesses have unique deduction opportunities:

Cost of goods sold

Your biggest deduction. Every product you sell reduces your taxable income by the cost to acquire or make it.

Inventory purchases (with a twist)

You can't deduct inventory when you buy it — only when you sell it (via COGS). But there's an exception: if you're a small business (under $25M average revenue), you can elect to deduct inventory purchases in the year you buy them if you also deduct them when sold via COGS. This accelerates deductions but requires careful tracking.

Section 179 and bonus depreciation

Equipment, computers, software, warehouse shelving — up to $1,220,000 (2025 limit) can be deducted immediately via Section 179 instead of depreciated over years.

Home office

If you run your store from home, the simplified method gives you $5/sq ft (max 300 sq ft = $1,500). Even if you have a warehouse, you can still claim home office if that's where you handle admin work.

Advertising and marketing

Facebook/Instagram/Google ads, influencer payments, affiliate commissions, email marketing tools — all fully deductible.

Software and tools

Shopify, inventory management, email marketing, design tools, shipping software, accounting software — all deductible.

Shipping supplies and postage

Boxes, poly mailers, tape, labels, postage — deductible. If you offer free shipping and build it into your price, the cost is still deductible as a business expense.

Professional photography and content creation

Product photos, lifestyle shots, video content for ads or your site — all deductible as marketing or advertising expenses.

When to get a CPA vs. doing it yourself

DIY if:

Hire a CPA when:

The hybrid model: Do your own bookkeeping monthly. Hire a CPA for quarterly tax planning and annual tax filing. This costs $1,500-3,000/year instead of $500+/month for full-service bookkeeping.

Not sure where an expense goes? Ask Buzz.

"Is my Shopify subscription COGS or operating expense?" "Can I deduct the influencer payment?" "Where do refunds go?" Buzz — the AI assistant in Hivebooks — answers these questions in plain English. No accounting textbooks, no Googling IRS pubs.

Try Buzz Free →

Multi-channel selling: keeping the books straight

Selling on Shopify, Amazon, Etsy, and eBay simultaneously? Each platform has different fees, payout schedules, and reporting. Your bookkeeping needs to handle all of them without creating chaos.

The wrong way

Recording each payout as revenue. Amazon deposits $3,247.18 on Tuesday — you record $3,247.18 in revenue. This is wrong because that payout already has fees deducted, and it doesn't tell you which products sold or what your margins are.

The right way

Record gross sales as revenue, fees as expenses, and reconcile payouts to make sure everything balances. Most ecommerce accounting tools (including Hivebooks) can sync with Shopify, Amazon, and Etsy to pull gross sales, fees, and payouts separately.

Separate entities or one?

If each channel is a separate legal entity (rare), you need separate books. If they're all under one LLC or sole proprietorship, track them in one set of books but use tags or classes to see per-channel profitability.

Inventory methods: FIFO, LIFO, and weighted average

If you sell the same product repeatedly and costs fluctuate, you need to choose an inventory valuation method. This affects your COGS and taxable income.

FIFO (First In, First Out)

You assume the oldest inventory sells first. If you bought 10 units at $5 and 10 more at $7, and you sell 10 units, COGS = $50 (the $5 units). Simple and most common for ecommerce.

LIFO (Last In, First Out)

You assume the newest inventory sells first. Rarely used in ecommerce. Beneficial in inflationary times (higher COGS = lower taxes) but creates weird inventory values on the books.

Weighted average

You average the cost of all units. In the example above, average cost = $6/unit. Sell 10 units, COGS = $60. Smooth and fair, but requires more calculation.

Pick one and stick with it. The IRS requires consistency. You can't switch methods year-to-year to minimize taxes.

Your first 30 days: getting ecommerce books set up

  1. Open a business bank account if you don't have one. Novo, Relay, or Mercury offer free business checking.
  2. Get a business credit card. Use it exclusively for business expenses.
  3. Sign up for Hivebooks and connect your bank, credit cards, Shopify, Stripe, and PayPal.
  4. Set up sales tax tracking. Either use a tool like TaxJar or manually track collected tax in a separate liability account.
  5. Create an inventory list. Track SKU, cost per unit, quantity on hand. Update when you buy or sell.
  6. Categorize one week of transactions. Hivebooks learns your patterns and starts auto-categorizing.
  7. Run your first P&L. Look at gross profit margin (revenue - COGS). If it's under 40%, your pricing or sourcing needs work.
  8. Set a weekly review reminder. Friday afternoons: 15 minutes to review and approve transactions.

Know your real margins.

Free bookkeeping for ecommerce. Track inventory, COGS, and profit margins automatically. No credit card required.

Start Free →