# Cost of Goods Sold

Learn how to calculate and track cost of goods sold for inventory valuation

289 posts [View all tags](https://beancount.io/blog/tags) [Back to All Posts](https://beancount.io/blog)

October 12, 2026 12 min read

## [How to Reconcile Shopify Fulfillment Fees and Duties Without Missing a Dollar of Product COGS](https://beancount.io/blog/2026/10/12/reconcile-shopify-fulfillment-fees-duties-cross-border-cogs-guide)

Duties and freight are inventory cost, not expenses — capitalize them per SKU, reconcile payouts gross-to-net, and accrue uninvoiced fulfillment monthly.

Mike Thrift

shopify e-commerce reconciliation

October 11, 2026 12 min read

## [FIFO vs. LIFO vs. Weighted Average Cost: How Your Inventory Method Changes COGS, Profit, and Tax](https://beancount.io/blog/2026/10/11/fifo-lifo-weighted-average-cost-inventory-valuation-guide)

FIFO maximizes reported profit when costs rise, LIFO minimizes tax, average cost splits the difference — choose by cash flow, borrowing plans, and IRS rules.

Mike Thrift

inventory cost-of-goods-sold small-business

October 11, 2026 11 min read

## [Freight-In vs. Freight-Out: Why Inbound Shipping Belongs in COGS and Outbound Shipping Is an Operating Expense](https://beancount.io/blog/2026/10/11/freight-in-vs-freight-out-cogs-operating-expense-guide)

Freight-in is part of inventory cost and becomes COGS when goods sell; freight-out is a selling expense. Mixing them distorts gross margin and tax.

Mike Thrift

cost-of-goods-sold inventory profit-margins

October 11, 2026 11 min read

## [How to Calculate Cost of Goods Sold the Right Way: Beginning Inventory, Purchases, Ending Inventory, and What It Tells You About Profit](https://beancount.io/blog/2026/10/11/how-to-calculate-cost-of-goods-sold-cogs-guide)

COGS equals beginning inventory plus purchases minus ending inventory — two careful counts decide your gross profit, pricing, and tax.

Mike Thrift

cost-of-goods-sold inventory profit-margins

October 11, 2026 10 min read

## [How to Reconcile Shopify Shipping Labels, Fulfillment Fees, and Sales Tax Without Losing a Dollar of COGS](https://beancount.io/blog/2026/10/11/reconcile-shopify-shipping-labels-fulfillment-fees-cogs-guide)

Shopify labels bill separately from payouts — split each invoice, book postage to COGS, and remit sales tax collected on shipping.

Mike Thrift

shopify e-commerce reconciliation

October 10, 2026 9 min read

## [How to Track COGS for an Etsy Shop: Materials, Labor, Fees, and Shipping](https://beancount.io/blog/2026/10/10/etsy-shop-cogs-materials-labor-fees-shipping-guide)

Etsy fees are not COGS — they are Schedule C selling expenses. Track materials, labor, fees, and shipping per listing to price for real profit.

Mike Thrift

cost-of-goods-sold etsy inventory

October 10, 2026 12 min read

## [The GPU Breakeven Line: When a Self-Hosted vLLM Cluster Beats the LLM API Bill](https://beancount.io/blog/2026/10/10/gpu-breakeven-line-self-hosted-vllm-vs-llm-api-cogs-guide)

Self-hosting beats LLM APIs past \~$20K/mo in API spend, then the cluster becomes a 5-year asset with Section 179 or bonus depreciation.

Mike Thrift

ai cost-of-goods-sold depreciation

October 10, 2026 11 min read

## [Unit Economics and the Gross Margin Ladder: Which Products, Channels, and Customers Actually Make You Money](https://beancount.io/blog/2026/10/10/unit-economics-gross-margin-ladder-profitability-guide)

Contribution margin per unit is revenue minus variable cost — slice it by product, channel, and customer to see which slices earn their keep.

Mike Thrift

financial-analysis profitability profit-margins

October 9, 2026 11 min read

## [Inventory Turnover Ratio for Small Retailers: How to Calculate Days Sales in Inventory, Spot Dead Stock, and Free Cash Trapped on Shelves](https://beancount.io/blog/2026/10/09/inventory-turnover-ratio-days-sales-inventory-dead-stock-retailer-guide)

Inventory turnover is COGS divided by average inventory — apparel typically turns 4 to 6 times a year. Track it quarterly to spot dead stock and free cash.

Mike Thrift

inventory cost-of-goods-sold financial-ratios

October 9, 2026 12 min read

## [Target Costing, Explained: Working Backward From the Price Customers Will Pay](https://beancount.io/blog/2026/10/09/target-costing-explained-market-price-minus-profit-guide)

Target cost equals market price minus required profit — set the price first, then engineer costs down to fit before you launch.

Mike Thrift

cost-management pricing-strategies profitability

October 8, 2026 11 min read

## [Paid Tariffs That No Longer Exist? Where Small Importers Stand in October 2026](https://beancount.io/blog/2026/10/08/paid-tariffs-that-no-longer-exist-ieepa-refunds-section-232-expansion-october-2026-guide)

CAPE Phase 3 opened October 6 for IEEPA refunds on finally liquidated entries; U.S. importers face 10-12.5% Section 301 duties and wider Section 232 tariffs.

Mike Thrift

tariffs customs trade-finance

October 7, 2026 10 min read

## [Amazon FBA Reimbursements Now Pay Manufacturing Cost, Not Retail Price: A 2026 Seller's Guide to Recovering Lost and Damaged Inventory](https://beancount.io/blog/2026/10/07/amazon-fba-reimbursement-manufacturing-cost-lost-damaged-inventory-claims-guide)

Amazon now reimburses lost FBA inventory at manufacturing cost, not retail price — file within 60 days with supplier invoices to recover what you are owed.

Mike Thrift

amazon e-commerce inventory

[Start Free→](https://beancount.io/sign-up/?next=%2Fledger%2F) [Documentation](https://beancount.io/docs)

## Where to look next

- [Sitemap](https://beancount.io/sitemap.xml) - all pages with hreflang alternates
- [LLMs index](https://beancount.io/llms.txt) - curated links for AI agents (also /llms-full.txt for full docs)
- [Documentation](https://beancount.io/docs) - every doc is also available as text/markdown via .md suffix or Accept negotiation
- [REST API reference](https://beancount.io/docs/api-reference) - interactive endpoints, schemas, authentication, and code samples
- [OpenAPI spec](https://beancount.io/openapi.json) - OpenAPI 3.1 spec for this website's public content endpoints; the product contract for ledger operations is at https://beancount.io/api-gateway/v1/openapi.json
- [GraphQL](https://beancount.io/graphql) - public, read-only content API over the blog and research logs (no credentials, no ledger data): 12 query fields over 23 types
- [MCP server](https://beancount.io/mcp) - Model Context Protocol at https://beancount.io/api-gateway/mcp
