FIFO & LIFO Calculator

Calculate cost of goods sold, ending inventory and gross profit under FIFO, LIFO and weighted average cost from up to five inventory purchases.

Results

Enter your details and click Calculate to see your results.
About This Calculator

Enter beginning inventory and each purchase in date order, then the units sold in the period. FIFO assumes the oldest units are sold first; LIFO assumes the newest are; weighted average uses the average cost of everything available.

Example

Example: 100 units at $10, 200 at $12 and 150 at $15, with 300 sold. FIFO COGS = $3,400, LIFO = $4,050 and weighted average = $3,766.67. When prices are rising, LIFO shows higher costs and lower profit (and tax).

Assumptions

Periodic inventory system (all sales assumed after all purchases). LIFO is allowed under US GAAP but not IFRS, and US companies that use it for tax must also use it in their financial statements. This tool gives estimates for learning and planning only and isn't financial, investment or tax advice. Results depend entirely on your inputs — check important decisions with a qualified professional.

Frequently Asked Questions

Which is better, FIFO or LIFO?

FIFO shows ending inventory closer to current cost; LIFO lowers taxable profit when prices rise. Most small businesses use FIFO.

Can I switch from FIFO to LIFO?

In the US you need IRS approval (Form 970 to adopt LIFO), and switching back requires Form 3115.

Related Calculators

About the Author

Imran Hossain
Imran Hossain

Professional SEO, Digital Marketer Specialist

I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist

View full profile