Inventory Cost (COGS) Calculator

Calculate cost of goods sold from beginning inventory, purchases, and ending inventory.

By Konstantin Iakovlev · Updated April 2026 · Source: SBA — Business Guide

$
$
$
$

COGS

$205,000.00

Inventory Turnover

4.3x

Inventory Analysis

Cost of Goods Sold$205,000.00
Average Inventory$47,500.00
Inventory Turnover4.3x
Gross Profit$145,000.00
Gross Margin41.4%

Use the Inventory Cost (COGS) Calculator above to calculate your results. Enter your values and see instant results — all calculations run in your browser.

Disclaimer: This calculator is for informational purposes only and does not constitute tax, financial, or legal advice. Results are estimates based on the information you provide and current rates. Always consult a qualified tax professional or financial advisor for advice specific to your situation.

How It Works

Cost of Goods Sold (COGS) captures the direct costs tied to the products you actually sold during an accounting period, and getting it right is what makes a profitability figure trustworthy. It also anchors your pricing, which matters all the more as supply chains keep reshaping themselves through 2026. The tool here reduces a core financial metric to a number you can track period over period.

The accounting formula behind COGS is short but exacting: Beginning Inventory plus Purchases minus Ending Inventory. Beginning Inventory is the value of goods you had ready to sell when the period opened, and Purchases adds in the cost of all new inventory acquired along the way. Subtracting Ending Inventory, the value of whatever stayed unsold at the close, isolates the cost of what genuinely left the shelves.

Purchases is the line most often shortchanged, since costs like freight-in and the direct labor on manufactured goods belong there and are easy to overlook. Applying one consistent valuation method, whether FIFO, LIFO, or Weighted Average, across every period keeps your COGS comparable rather than distorted. With raw material costs swinging through 2026, accurate and timely physical counts have never carried more weight.

Example: 2026 Q1 Electronics Retailer COGS Calculation

  1. 1 A small electronics retailer started Q1 2026 with an inventory value of $50,000. During the quarter, they purchased an additional $120,000 worth of new electronics. At the end of Q1 2026, their physical inventory count showed $40,000 remaining.
  2. 2 Using the formula, COGS = Beginning Inventory + Purchases - Ending Inventory. So, COGS = $50,000 (Beginning Inventory) + $120,000 (Purchases) - $40,000 (Ending Inventory).
  3. 3 The calculated Cost of Goods Sold for the electronics retailer in Q1 2026 is $130,000.
  4. 4 This $130,000 represents the direct cost incurred by the retailer to acquire the products that were sold during Q1 2026. This figure is essential for determining the gross profit and overall profitability of their sales for the quarter, especially when comparing against their 2025 performance data.

Source: SBA — Business Guide · Last updated: April 2026

Frequently Asked Questions

How do I calculate cost of goods sold?
COGS equals beginning inventory plus purchases during the period minus ending inventory. This formula works for both periodic and perpetual inventory systems when adjusted for the costing method used.
What is the difference between FIFO and LIFO for inventory costing?
FIFO (first in, first out) assigns older costs to COGS, resulting in lower COGS and higher profits during inflation. LIFO (last in, first out) assigns newer, higher costs to COGS, reducing taxable income. LIFO is not allowed under IFRS.
Does inventory cost include shipping and handling?
Yes. Inventory cost should include the purchase price, freight-in, insurance during transit, and any costs to bring inventory to a saleable condition. Shipping to customers is a selling expense, not part of inventory cost.