Skip to content

Cost of Goods Sold Calculator (US, Schedule C)

Enter beginning inventory, purchases and ending inventory to fill in Schedule C Part III, or list your purchase layers to compare FIFO, weighted average and LIFO cost of goods sold and gross margin.

Calculator Details

Cost of goods sold:$81,000.00See results ↓

Inventory totals for the year (tax form), or purchase layers with a cost-flow method

Cost of inventory at the start of the year (last year’s closing inventory)

Goods and materials bought for resale during the year, before tax you recover

Shipping, customs and brokerage to bring the goods in

Goods sent back to suppliers, allowances and early-payment discounts

Cost of inventory on hand at year end (lower of cost and net realisable value)

Net sales for the year (for gross profit and margin)

Your Results

Cost of goods sold: $81,000.00

Cost of goods sold

$81,000.00

Goods available $106,000.00 less closing inventory

Gross profit

$69,000.00

On sales of $150,000.00

Gross margin

46%

Closing inventory

$25,000.00

Cost of goods sold is $81,000.00. On sales of $150,000.00 that leaves a gross profit of $69,000.00, a 46% gross margin, with $25,000.00 of inventory left.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Detailed Breakdown

Cost of goods sold on IRS Schedule C, Part III
ItemLineAmount
Opening inventory35$20,000.00
Purchases, net of returns and discounts (freight-in included)36$86,000.00
Cost of labor37$0.00
Other costs39$0.00
Goods available (subtotal)40$106,000.00
Closing inventory41$25,000.00
Cost of goods sold42$81,000.00

Line 36 is purchases less items withdrawn for personal use; line 38 (materials and supplies) is part of other costs here.

How This Calculator Works

How cost of goods sold is calculated

COGS = opening inventory + purchases (net of returns, plus freight-in) + direct costs − closing inventory

FIFO: oldest layers first; weighted average: total cost ÷ total units × units sold; gross margin = (sales − COGS) ÷ sales

Rounding: COGS, gross profit, inventory values and cost per unit are rounded half up to the cent, and the gross margin to 2 decimal places, only at the output; the working keeps full precision. Units sold are rounded half up to a whole unit.

Your numbers: $20,000.00 + $85,000.00 + $2,500.00 − $1,500.00 − $25,000.00 = $81,000.00. Gross profit $150,000.00 − $81,000.00 = $69,000.00 (46%).

Frequently Asked Questions

What is the LIFO conformity rule?

If a business uses LIFO for its federal tax return, it generally must also use LIFO in its financial reports to owners and lenders (IRC §472(c)). You elect LIFO by filing Form 970 with the return for the first year you use it, and changing away from it later needs IRS consent.

Do small businesses have to keep inventory for tax?

Not always. Since 2018, businesses that meet the gross receipts test (average annual gross receipts under an inflation-adjusted threshold, about $31 million for 2025) can treat inventory as non-incidental materials and supplies or follow their books, instead of the full inventory rules. Check the current threshold in the Schedule C instructions; many still track inventory to get an accurate gross profit.

Where does COGS go on Schedule C?

Fill in Part III, lines 33 to 42: the valuation method (cost, lower of cost or market, or other), beginning inventory on line 35, purchases less items withdrawn for personal use on 36, cost of labor on 37, materials and supplies on 38, other costs on 39, the total on 40, ending inventory on 41 and cost of goods sold on 42. Line 42 then goes to line 4 on page 1.

Does LIFO lower my taxes?

When prices are rising, LIFO expenses the newest, most expensive units first, so cost of goods sold is higher and taxable income lower than under FIFO. In the calculator's example LIFO gives $3,750 of COGS against $3,400 for FIFO. The saving reverses if prices fall or if old LIFO layers are sold off.

The totals mode follows the periodic formula on CRA Form T2125 Part 3D (lines 8300–8519) and IRS Schedule C Part III (lines 35–42); freight-in is added to purchases and subcontracts are part of other costs. Layers use FIFO and weighted average (IAS 2, ASPE 3031) and, on the US page, LIFO; the weighted average is periodic (one average for the whole period), not a moving average after each sale. It leaves out specific identification, the retail method, perpetual moving averages, write-downs to net realisable value, shrinkage, LIFO reserves and dollar-value pools, capitalisation of overhead under IRC §263A, and personal-use withdrawals. Your accountant's method and the tax form govern.

COGS Calculator (US): Schedule C Cost of Goods Sold, FIFO and LIFO

By FindMySum · Last reviewed

This US version of the cost of goods sold calculator follows Part III of Schedule C (Form 1040), where sole proprietors and single-member LLCs report the cost of the goods they sold, and it adds LIFO to the cost-flow methods, since it is allowed for US tax (it isn't in Canada).

Worked example: Schedule C Part III

The page opens on a small retailer's year in dollars:

  • Line 35, beginning inventory: $20,000.
  • Line 36, purchases: $85,000 plus $2,500 of freight-in, less $1,500 of returns and discounts, $86,000.
  • Line 40, the total: $106,000.
  • Line 41, ending inventory from the year-end count: $25,000.
  • Line 42, cost of goods sold: $81,000, which goes to line 4 on page 1.

On $150,000 of sales that leaves a gross profit of $69,000, a 46% gross margin. If you make what you sell, enter direct labor and other production costs under the advanced options; they go on lines 37 to 39.

FIFO, average cost and LIFO

In layers mode you list the units you had and bought at each cost, oldest first, such as 100@10, 200@12, 150@13, and the units sold. For 300 units sold at $20:

  • FIFO: $3,400 of cost of goods sold, $1,950 of ending inventory, a $2,600 gross profit.
  • Weighted average: $3,566.67 of COGS and $1,783.33 left.
  • LIFO: the newest units first, $3,750 of COGS and $1,600 left, a $2,250 gross profit.

The IRS lets you choose a method that clearly reflects income and requires you to use it consistently. Adopting LIFO takes Form 970 and brings the conformity rule with it; switching between methods later is a change in accounting method (Form 3115).

Valuing ending inventory

Schedule C line 33 asks how you value closing inventory: at cost, at the lower of cost or market, or another method. Most small retailers count stock at year end and value it at cost. Damaged or obsolete stock can be valued lower if you use lower of cost or market. Items you take for personal use are subtracted from purchases on line 36.

Sales tax and COGS

US sales tax you collect from customers isn't revenue and isn't part of cost of goods sold: you hold it for the state. Sales tax you pay on goods bought for resale is usually avoided with a resale certificate; if you do pay it, it is part of the cost of the goods. Shipping you charge customers is revenue, and the cost of shipping to them is a selling expense rather than COGS.

What the US version leaves out

The uniform capitalization rules of §263A for larger producers and resellers, dollar-value LIFO pools and LIFO reserves, the small-business gross receipts exception, and state tax differences. For a Canadian business reporting on Form T2125, use the cost of goods sold calculator.

Sources

This article explains how the calculator works and is general information, not financial, tax or legal advice. Rules change; check the sources above or a qualified professional before you act.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy