Cost of Goods Sold Calculator

Cost of Goods Sold Calculator

Calculate COGS from opening inventory, net purchases, direct labor, overhead, shrinkage, and ending inventory. The tool also estimates gross profit, gross margin, cost per unit sold, inventory turnover, and the formula trail for the period.

📌COGS Scenario Presets

🧮Inventory and Sales Inputs

Updates the reference cards and suggested shrinkage range.

Use matching inventory and sales cutoffs for the same period.

The calculator reports the method label; enter inventory values already measured by that method.

Manufacturing overhead belongs in product cost when it is inventory-related.

Inventory on hand at the start of the period.

Supplier purchases, raw materials, or goods available for resale.

Freight-in, import duty, receiving fees, and landed-cost add-ons.

Supplier credits reduce net purchases for the period.

Use production labor, kitchen prep labor, or assembly labor when applicable.

Rent, utilities, indirect supplies, and equipment costs tied to production.

Add normal shrink, expired goods, damage, and inventory count losses.

Inventory still on hand at the end of the same period.

Physical sold units, meals, boxes, cases, or finished goods shipped.

Sales after customer refunds, allowances, and discounts.

Used to show required sales for the entered COGS level.

Optional unit count helps estimate average inventory value per unit.

Use the counted ending units for inventory turnover context.

Cost of goods sold $0 beginning inventory + net purchases - ending inventory
Gross profit $0 net sales minus COGS
Gross margin 0.0% gross profit divided by sales
COGS per unit sold $0.00 COGS divided by sold units

📊Current COGS Snapshot

$69,800Net purchases
$112,300Goods available
2.7xInventory turn
72.3%COGS ratio
$41,125Avg inventory
$159,000Target sales
57.1%Markup on cost
35.4%Unsold share

🗂Business Pattern Reference

38-50%Typical margin
4-8xAnnual turn
1-3%Shrink range
PurchasesMain driver

📘COGS Formula Breakdown

Basic COGSBeginning inventory + net purchases + direct production costs + normal shrinkage - ending inventory.
Net purchasesGross purchases + inbound freight and duties - purchase returns and supplier discounts.
Gross profitNet sales revenue - cost of goods sold for the same accounting period.
Gross marginGross profit divided by net sales revenue. This is different from markup on cost.
COGS per unitCost of goods sold divided by units sold, using sold units rather than produced or purchased units.
Inventory turnoverCOGS divided by average inventory value. Use annualized periods when comparing against annual benchmarks.

📋COGS Component Reference

ComponentCOGS DirectionCommon SourceInclude WhenAvoid Mixing With
Beginning inventoryAddPrior close balanceGoods were available for sale at period startCurrent purchases ledger
Gross purchasesAddSupplier billsInventory was bought for resale or productionOperating supplies
Inbound freightAddFreight-in invoicesFreight is needed to acquire sellable stockOutbound shipping
Purchase returnsSubtractVendor creditsGoods were returned or discounts reduced costCustomer refunds
Direct laborAddJob or batch laborLabor transforms materials into sellable goodsAdmin payroll
Production overheadAddCost allocationOverhead attaches to manufactured inventorySelling expense
Normal shrinkageAddInventory countsLosses are normal spoilage, breakage, or shortageUnusual loss analysis
Ending inventorySubtractPhysical count or perpetual ledgerGoods remain unsold at period endFuture-period COGS

⚙Inventory Method Comparison

MethodBest FitCOGS Effect When Costs RiseEnding Inventory EffectCalculator Input Note
Weighted averageInterchangeable itemsMiddle of FIFO and LIFOSmoothed unit costUse average-cost inventory balances
FIFOPerishable or chronological goodsLower COGS in rising-cost periodsHigher ending inventoryValue ending units from newer layers
LIFOTax or internal flow in some systemsHigher COGS in rising-cost periodsLower ending inventoryUse LIFO layer balances where allowed
Specific IDUnique or high-value itemsDepends on actual sold itemsSpecific remaining costEnter traced cost of sold and ending goods
Standard costManufacturing controlsDepends on variance handlingStandard plus capitalized variancesInclude assigned purchase or production variances
Retail methodRetail estimate closeEstimate based on cost ratioEstimate based on retail ending stockEnter converted cost-value inventory balances

📦Preset Input Benchmarks

PresetBeginning Inv.Gross PurchasesOther AddsCreditsEnding Inv.Units SoldNet SalesTypical Use
Retail Quarter$42,500$68,500$4,070$1,850$39,7506,120$142,000Merchandise close
Bakery Week$3,250$8,900$5,590$420$2,8803,400$24,750Food production
Manufacturer Month$118,000$176,500$126,500$5,200$141,50018,400$492,000Factory output
Ecommerce SKU Batch$12,400$31,200$3,280$1,150$9,6504,850$79,600Landed resale
Restaurant Month$9,800$44,500$21,180$980$10,70012,900$126,500Menu COGS
Craft Shop Run$5,600$13,850$12,050$300$4,9501,260$43,800Made-to-sell run
Produce Harvest$2,900$17,600$22,200$0$3,80028,000$63,500Harvest batch
Subscription Box Cycle$27,400$82,000$16,240$2,600$24,90014,200$198,800Box assembly
Wholesale Distributor$210,000$540,000$21,500$12,000$235,00046,000$718,000Case shipments

🔎Margin and Turnover Reading

MetricFormulaHealthy SignalReview SignalWhat To Check
Gross marginGross profit / salesStable against prior periodsSudden dropSupplier cost, discounting, or shrink
COGS ratioCOGS / salesLower than planned ceilingAbove expected rangeInput cutoff and ending count
Unit COGSCOGS / units soldClose to recipe, BOM, or buy costHigher than standardFreight, labor allocation, spoilage
Inventory turnCOGS / avg inventoryMatches product velocityVery low or unusually highDead stock or count errors
Markup on costGross profit / COGSSupports target marginBelow pricing modelSelling price and promotions
Unsold shareEnding inv. / goods availableConsistent with reorder cycleLarge buildupDemand forecast and stock aging

💡COGS Close Tips

Align every cutoff: Beginning inventory, purchases, returns, ending count, sold units, and net sales need the same accounting period or the gross margin will be distorted.
Separate freight-in from shipping-out: Inbound freight usually becomes part of inventory cost; outbound customer delivery is commonly a selling or fulfillment expense.
Use normal shrink consistently: Spoilage, breakage, and inventory shortage can belong in COGS when they are ordinary operating losses tied to the goods sold.
Reconcile unit counts: If COGS per unit looks odd, compare sold units with beginning units plus purchased or produced units minus ending units.

Prioritize cost of making product over spending money on marketing Before small business owners obsess about marketing spend, they should of first prioritize the cost to make their product. Reconciling invoices and counting boxes seem like a boring, cold administrative chore. But it’s here where profit gets lost in the boredom.

Cost of goods sold isn’t simply an accounting entry. It reflect whether your business model is working, or if you’re moving costly air around. You might be able to sell a thousand units of a product. Without tracking what goes into each unit (labor, materials, shrinkage), you’re flying blind.

Put Making Costs Before Marketing Costs

Once you input your sales data and inventory levels, the calculator above do the math for you. It saves you the guesswork on conversions and coefficients. It sounds so obvious, but the nuts and bolts of what’s included in this equation are important. For example, do you account for import duties? Do you account for inbound freight? Those is common mistakes.

If not, then the product appears more affordable then it truly is. Again, it’s small, but it counts. Not accounting for the cost of bringing products to your doorstep can make your gross margin appear strong on paper, yet leave your bank account stagnant. The calculator includes fields for those landing costs. Whatever the real cost per unit is to get products out the door, that are our final figure.

Another tripwire is labor. Any direct labor associated with making or assembling product goes into cost of goods sold. For example, time spent by workers mixing batter or sanding tables is a product cost. Time spent by those same workers managing social media or answering phones is an operating expense. Mixing these two types of categories distorts your margins. To know how efficiently you’re working, you must keep production costs separate from overhead.

The chart on the page lay it out for you: what goes into COGS and what doesn’t. Knowing the difference will help you price accordingly, as well as find places where waste may be hiding in your process.

Shrink is the ghost in the machine. That’s the inventory which goes missing somewhere between shelf and the sales register because it was damaged, stolen, or spoiled. Most businesses expect some shrink to happen as part of doing business. With the tool, instead of pretending shrink doesn’t exist until year-end, you can build it into the picture.

Perishable food sells? Of course there’ll be some spoilage. Electronics sell? Maybe theft is the larger risk. In either case, it is a cost of doing business. It need to be counted in the same period in which it happens.

When you ignore shrink, you’re creating a false sense of security. You’ll end up with less inventory on hand than your ledger anticipates, and that discrepancy is money you’ve already lost.

This entire system has a pulse check: inventory turnover. Inventory turnover indicates the speed at which you’re turning over stock. If it’s high, that typically means you’re keeping your cash flow tight and selling items fast. Low turnover indicate either falling demand or overstocking. You need sufficient stock to fulfill demand but not tie up too much capital with boxes that won’t move.

This ratio is automatically computed by the calculator. Use it as a benchmark to compare yourself to industry standards. It’s not only how much you sell; it’s also how efficiently you use your inventory to generate those sales. And all that hinges on this: how much does each one cost?

If you don’t know what something costs, you can’t price it with any confidence. You will have no way to ensure you’re covering your costs and making a profit. And even if you’re off by just a bit, that could wipe out your margin completly. So aim to get every cut-off, from initial inventory through to final count, lined up.

When the numbers add up then the story they tell has to be right. Because when the story’s right, you’ve gone from a mass of receipts to a clear picture of profitability. You will use these profit and loss figures to confidently buy, sell and grow your business.

It’s basic math, yet the willpower to actualy follow it is what divides the businesses that thrive from those that struggle.

Cost of Goods Sold Calculator