Cost of goods sold is the number most product businesses reconstruct from memory in April. This free Excel template calculates it as a by-product of tracking you should be doing anyway — materials, purchases, production runs, and orders, with beginning and ending inventory values worked out for you.
Join the Stocksmith mailing list and we'll send you our inventory and cost of goods sold spreadsheet template for free! We typically send 2-4 emails a month about small batch production topics which we hope are useful to our readership.
What's included
Most COGS templates are a single tab: type in three numbers, get a result. That works if you already know your beginning inventory, your purchases, and your ending inventory. If you make what you sell, you don't — those numbers have to come from somewhere. This template is the somewhere.
Beginning inventory, plus purchases made during the year, less ending inventory. Each of those three inputs is tallied from the tabs behind it rather than estimated at year end.
What you paid for a material and what it cost you are different numbers. The purchases tab allocates shipping and tax proportionally across an order, so your unit costs reflect what actually left your bank account.
The bridge between what you bought and what you sold. Log each production run and the materials it consumed, and the template gives you a material cost per batch and per unit — the figure your pricing should be built on.
Template walkthrough
The workbook is divided into seven linked tabs, each covering one part of your inventory workflow. It's built to run over a single calendar year, so it can calculate your start and end-of-year inventory values. Calculated columns are shaded in the file — enter your data everywhere else and let the formulas do the work.
A complete list of the materials you hold — the foundation the rest of the workbook builds on. For each one:
A log for anything withdrawn from stock that didn't go into a product you sold — samples, testing, or personal use. Keeping it separate means your COGS only reflects what genuinely went into production:
A full record of every material purchase — one row per item bought, so five items from one supplier means five rows:
The step most inventory spreadsheets skip entirely: recording what you made, and which materials each production run consumed:
Your finished goods — what's made, priced, and ready to sell:
Every sale, recorded one product per row so manufacture costs can be tallied against revenue:
The tab that makes the rest worth maintaining — your key totals, tallied automatically through the year. Every figure here is calculated:
Every inventory figure is derived from the unit costs you enter during the year, so the accuracy of your reports depends on the accuracy of those costs.
Download the free spreadsheet and you'll have a working inventory and cost-of-goods-sold system in place today — no software required.
Download the free spreadsheet →Cost of goods sold is the direct cost of producing the items you actually sold in a period. The formula is short: beginning inventory + purchases − ending inventory. The difficulty isn't the arithmetic — it's that a manufacturing business has to produce all three inputs, and none of them are sitting in a bank feed.
A retailer can read purchases straight off supplier invoices, because what they bought is what they sell. A product business buys materials, converts them into something else, and sells that. Your inventory value at any moment is part raw material, part finished goods, and the conversion between them is a production record you either kept or didn't.
That's the gap this template closes. Materials and finished products each get their own tab with a valuation. Purchases accumulate through the year with landed costs. Manufactures record what each run consumed. Personal-use withdrawals come back out, so you're not claiming materials that never went into a sale. The reports tab then assembles those into the figure your accountant asks for.
Worth being clear about one distinction, because it's the most common filing mistake: COGS is not the same as business expenses. COGS covers direct production costs — raw materials, components, direct labour. Marketplace fees, packaging, software, shipping supplies, and your workspace are operating expenses. Both reduce taxable income, but they're reported in different places, and mixing them changes your gross margin picture entirely.
Who uses this
Built for small-batch product businesses that buy materials and manufacture finished goods — the case where COGS can't be read off an invoice.
The year you start carrying inventory is the year COGS stops being optional. Starting the records in January is dramatically less painful than assembling them the following April.
Revenue up, profit flat is almost always a costing problem. An accurate cost of manufacture per unit is the first place to look, and it's what this template produces.
Repricing against competitors without knowing your own batch costs is guesswork. Cost first, price second — and material prices move more than most people track.
A shared workbook with a defensible audit trail behind each figure is a much shorter conversation than a folder of receipts and a best guess at closing stock.
The formula is beginning inventory + purchases made during the period − ending inventory. For a manufacturing business, "inventory" spans both raw materials and finished goods, and the purchases figure should use landed costs — the price paid plus proportional shipping and tax. The spreadsheet calculates all three inputs from the data you log through the year, so the final figure comes out of the reports tab rather than an estimate.
COGS covers only the direct cost of producing the goods you sold — raw materials, components, and direct manufacturing labour. Business expenses are everything else: marketplace and payment fees, packaging, shipping supplies, tools, software, and workspace costs. Both reduce taxable income, but they're reported separately, and only COGS affects your gross margin. Classifying a material cost as an expense (or vice versa) will quietly distort the margin figures you make decisions on.
At minimum you need four connected tabs: materials with unit costs, purchases recording what you bought and when, manufactures recording what you made and which materials it consumed, and orders recording what sold. A reports tab then pulls those together into a COGS figure. The template above has all of that pre-built, plus product inventory and personal-use tabs — enter your own materials and costs and it works from day one.
A well-maintained spreadsheet produces the figures a cost-of-goods-sold calculation needs: beginning inventory value, total purchases for the year, and ending inventory value. The requirement is consistency — every purchase, production run, and stocktake logged through the year rather than reconstructed at filing time. What your particular return needs, and how it should be presented, is a question for your accountant; this template's job is to make sure the underlying numbers exist and are defensible.
Yes. It's delivered as an Excel file that opens in Google Sheets and Apple Numbers with its formulas intact — upload it to Drive and open with Sheets, or open it directly in Numbers. Enter your email above and we'll send the download link along with a written instruction guide. The workbook covers a single calendar year; at year end you copy it, carry over your material and product tabs, and update the starting quantities.
Two signals, usually arriving together: you're selling on more than one channel, so orders have to be re-keyed by hand; and your product range has grown past the point where a missed row is noticeable. One unlogged production run skews the year's COGS, and spreadsheets don't tell you when a formula has stopped covering a new range. Stocksmith syncs orders from your sales channels, deducts materials automatically when you record a manufacture, and keeps the COGS calculation current without the data entry.
When you outgrow the spreadsheet
A spreadsheet gives you an accurate COGS figure once a year, if you maintained it faithfully. That's genuinely useful — and it's also the ceiling. Between January and December, the number is only as fresh as the last time you sat down with it.
Stocksmith runs the same workflow as connected software. Record a production run and materials come out of stock at their real landed cost. Orders sync in from your sales channels. Your cost of goods sold, gross margin, and inventory valuation are current whenever you look at them — not just in April.
The discipline you build with this spreadsheet transfers directly. Stocksmith removes the data entry that comes with it.
No credit card required. Takes hours to set up, not weeks.
With the spreadsheet
With Stocksmith
Free Template
The same seven-tab workbook, framed around tracking the materials you buy and what you make from them.
Free Template
Track material stock levels, landed costs, and usage per production run in Excel or Google Sheets.
All Resources
Every free spreadsheet, template, and calculator we publish for small-batch manufacturers.