# 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)

April 3, 2026 9 min read

## [LIFO Inventory Method: What It Is, How It Works, and When to Use It](https://beancount.io/blog/2026/04/03/lifo-last-in-first-out-inventory-method-explained)

Learn how the LIFO (Last In, First Out) inventory method works, how to calculate COGS and ending inventory, LIFO vs. FIFO differences, tax benefits during inflation, LIFO reserve, LIFO liquidation, and when LIFO is the right choice for your business.

Mike Thrift

accounting small-business 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
