Rounding Robin

Home › Accounting › FIFO and LIFO Inventory Calculator

FIFO and LIFO Inventory Calculator

Enter the units and unit cost of each purchase in date order, oldest first, and the units sold.

Cost of goods sold, FIFO$2,980.00
Cost of goods sold, LIFO$3,305.00
Units available
450
Cost of goods available
$5,075.00
MethodCost of goods soldEnding inventory
FIFO$2,980.00$2,095.00
LIFO$3,305.00$1,770.00
Weighted average$3,157.78$1,917.22

Formula

FIFO: the oldest costs are charged to cost of goods sold first
LIFO: the newest costs are charged to cost of goods sold first
Weighted average cost per unit = Cost of goods available ÷ Units available
Ending inventory = Cost of goods available − Cost of goods sold

How it works

The three methods assign the same total cost between cost of goods sold and ending inventory in different ways. When prices are rising, FIFO gives the lowest cost of goods sold and the highest profit, and LIFO gives the opposite.

This calculator applies each method to the period as a whole (the periodic method). Under a perpetual system, LIFO and weighted average can give different figures because each sale is costed when it happens.

Worked example

Using the starting figures above (Units in each purchase (comma separated): 100, 200, 150; Unit cost of each purchase (comma separated): 10, 11, 12.50; Units sold: 280), the calculator returns:

Common questions

Is LIFO allowed?

LIFO is permitted under US GAAP and for US tax purposes. It is not permitted under IFRS.

Which method should I use?

Choose the method that best reflects how costs flow and apply it consistently. A change of method must be justified and disclosed.

Related calculators

Link to, cite or embed this calculator

This calculator is free to link to and cite. No permission is needed.

Link

<a href="https://roundingrobin.com/fifo-lifo-calculator/">FIFO and LIFO Inventory Calculator</a>

Citation

Rounding Robin. "FIFO and LIFO Inventory Calculator." https://roundingrobin.com/fifo-lifo-calculator/. Accessed [date].

Embed

Paste this HTML where the calculator should appear. It is free to use on any site with the credit line left in place.

<iframe src="https://roundingrobin.com/embed/fifo-lifo-calculator/" title="FIFO and LIFO Inventory Calculator" width="100%" height="620" style="border:1px solid #d3dcd6;border-radius:10px" loading="lazy"></iframe>
<p style="font-size:13px">Calculator by <a href="https://roundingrobin.com/fifo-lifo-calculator/">Rounding Robin</a></p>

To report an error or request a calculator or template, send feedback.

Results are estimates for general information. They are not financial, tax or legal advice. Check important figures with a qualified professional before acting on them.