SOLVETUTORMATH SOLVER

Instrument MI-02-128 · Finance

Cost of Goods Sold Calculator

Enter beginning inventory, purchases, and ending inventory. The instrument returns cost of goods sold — the expense a retailer or maker nets against revenue before anything else.

Instrument MI-02-128
Sheet 1 OF 1
Rev A
Verified
Type 02 — Accounting SER. 2026-02128

Cost of goods sold

$210,000.00

COGS = beginning inventory + purchases − ending inventory

The working Every figure verified twice
  1. cogsOut = 50000 + 200000 − 40000 = 210,000.00
Worksheet log
  1. No entries yet — change an input to log a scenario.

How this instrument works

Cost of goods sold is the direct cost of the stock a business actually sold in a period — not what it spent buying inventory, not what still sits in the stockroom, but the cost tied to units that left through a sale. A retailer filing Schedule C, a manufacturer closing the books before quarterly taxes, or a bookkeeper building an income statement all reach for this exact three-line sum, because it turns a stack of purchase invoices and a stockroom count into the one expense line sitting directly beneath revenue.

The formula works by elimination rather than direct measurement. Add what was on hand at the start to everything bought or produced during the period, and that total is every unit the business could possibly have sold. Subtract what remains unsold at the close, and whatever is missing from the count is presumed sold — arithmetic that holds in a clean set of books but glosses over shrinkage, breakage, or theft, which a physical count needs to catch on its own.

This number answers a narrower question than it looks like it does. It says nothing about the price those goods sold for, so pairing it with revenue is what gross margin or markup figures are for, and it excludes the rent, wages, and marketing spent selling the stock rather than acquiring it. The single most common misreading treats Purchases during the period as everything the business spent, when it should hold only the cost of stock and freight-in — rent and administrative wages belong further down the income statement.

COGS=BI+PEICOGS = BI + P - EI
COGS — cost of goods sold for the period · BI — beginning inventory value · P — purchases or production cost added during the period · EI — ending inventory value still unsold at the close.
  • Enter Beginning inventory, $ — the value of stock on hand at the start of the period, carried over from the prior period's closing count.
  • Enter Purchases during the period, $ — the cost of stock bought or produced, including freight-in, not the price it will later sell for.
  • Enter Ending inventory, $ — the value of stock still on hand and uncounted as sold at the close of the period.
  • Read Cost of goods sold — the instrument adds beginning inventory to purchases, then subtracts whatever remains unsold.

Worked example — $50,000 opening, $200,000 bought

Take a retailer that opened the quarter holding $50,000 of inventory, then bought $200,000 more stock over the following three months. Add those two figures and $250,000 of goods were available to sell across the whole period, whether every unit actually moved or not.

A count at the close finds $40,000 of that stock still unsold. Subtract it from the $250,000 available and $210,000 is what left the shelves — the cost of goods sold this instrument returns for exactly these inputs. That $210,000 is the expense a bookkeeper carries onto the income statement directly beneath revenue, before rent, wages, or any other cost is considered.

Questions

Why subtract ending inventory instead of just adding up receipts?

Purchase receipts alone show what was bought, not what was sold. A business can buy $200,000 of stock and move only $150,000 of it, leaving $50,000 sitting in the stockroom; subtracting the ending count is what separates the cost of goods actually sold from the cost of goods merely acquired.

Is cost of goods sold the same as total business expenses?

No. It covers only the direct cost of the stock that sold — the goods themselves plus costs tied straight to acquiring them, like freight-in. Rent, marketing, and office salaries sit lower on the income statement and get subtracted separately on the way to net profit.

Does Purchases during the period include shipping and labor?

Freight-in — what a business pays to get stock into its own warehouse — belongs in Purchases, and a manufacturer's direct production labor and materials belong there too. Outbound shipping to a customer and a store manager's salary do not; those are operating costs, not inventory cost.

Why does switching between FIFO and LIFO change the answer?

This instrument only totals the beginning, purchase, and ending figures entered — it doesn't decide which units those dollars represent. FIFO assumes the oldest stock sold first and LIFO assumes the newest did, so the same stockroom can produce two different ending inventory values, and therefore two different results, depending on which method generated the number typed in.

Can cost of goods sold come out negative?

Only if ending inventory is entered larger than beginning inventory plus purchases combined, meaning more stock is on hand at the close than could possibly have been available. That almost always signals a miscounted stockroom or a typo rather than a real result; a correctly counted period returns zero or a positive figure.

Where does this figure go on a tax return?

It sits on Form 1125-A for corporations and partnerships, or directly on Schedule C, Part III, for a sole proprietor, and the total then reduces gross receipts to reach gross profit before any other deduction is taken.

References

Read this first: This instrument shows arithmetic, not advice. Real offers add fees, taxes and terms that vary by lender and place — verify the figures against your actual paperwork before deciding anything.