Inventory Cost (COGS) Calculator

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

$
$
$
$

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

Our Inventory Cost (COGS) Calculator helps businesses determine the direct costs attributable to the production of the goods sold during an accounting period. Understanding your COGS is crucial for accurately assessing profitability and setting competitive prices, especially as supply chain dynamics continue to shift in 2026. This calculator provides a straightforward way to track a fundamental financial metric impacting your bottom line.

The Cost of Goods Sold (COGS) is calculated using a simple yet powerful accounting formula: Beginning Inventory + Purchases - Ending Inventory. 'Beginning Inventory' represents the value of goods available for sale at the start of the period, while 'Purchases' includes the cost of all new inventory acquired. 'Ending Inventory' is the value of goods remaining unsold at the close of the period, providing a clear picture of what was actually sold.

A common mistake is failing to include all relevant costs in 'Purchases,' such as freight-in or direct labor for manufactured goods. Businesses should also ensure consistent inventory valuation methods (e.g., FIFO, LIFO, Weighted Average) are applied across all periods to avoid distorting COGS. In 2026, with fluctuating raw material costs, accurate and timely inventory counts are more critical than ever.

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.