Cost of Goods Sold (COGS) Calculator
Calculate cost of goods sold from inventory and purchase data to find gross profit.
Amortization schedule
| # | Payment | Principal | Interest | Balance |
|---|---|---|---|---|
Growth over time
| Year | Invested | Value |
|---|---|---|
Introduction
COGS Calculator - Calculate cost of goods sold from inventory and purchases. Enter Beginning inventory, Purchases, Ending inventory to get an instant result.
Formula
COGS = Beginning Inventory + Purchases − Ending Inventory.
Step-by-step
- Enter the Beginning inventory.
- Enter the Purchases.
- Enter the Ending inventory.
- Click Calculate to see your result instantly.
Real-world example
Example: With Beginning inventory = 5000, Purchases = 20000, Ending inventory = 8000, the COGS Calculator gives a result of 17000.
Frequently Asked Questions
What counts as "purchases"?
Why does ending inventory get subtracted?
What inputs does the COGS Calculator need?
How accurate is the COGS Calculator?
Is the COGS Calculator free to use?
About the COGS Calculator
Cost of Goods Sold (COGS) is the direct cost of producing or purchasing the goods that a business sells during an accounting period. It is subtracted from revenue to calculate gross profit, making it one of the most critical figures on any income statement. The COGS Calculator helps you compute this value accurately from your inventory and purchase data. The standard COGS formula is: COGS equals beginning inventory plus purchases (or production costs) minus ending inventory. Beginning inventory is the value of unsold goods at the start of the period. Purchases are the cost of goods acquired or produced during the period. Ending inventory is the value of unsold goods remaining at the period's end. For example, if a retailer starts January with $50,000 in inventory, purchases $80,000 in new merchandise during January, and has $35,000 remaining at month-end, COGS is $50,000 plus $80,000 minus $35,000, which equals $95,000. The $95,000 represents the cost of the goods actually sold during the period. The inventory valuation method used affects COGS. FIFO (First-In, First-Out) assumes the oldest inventory is sold first. In a period of rising prices, FIFO produces a lower COGS and higher gross profit because older, cheaper inventory is reported as sold. LIFO (Last-In, First-Out) assumes the newest inventory is sold first, producing higher COGS and lower gross profit in rising price environments. Weighted average cost averages the cost of all inventory and applies that average to both COGS and ending inventory. COGS is then subtracted from revenue to calculate gross profit: gross profit equals revenue minus COGS. Gross margin is gross profit expressed as a percentage of revenue. A business with $200,000 in revenue and $120,000 in COGS has a gross profit of $80,000 and a gross margin of 40 percent. This calculator supports all three inventory methods and provides gross profit, gross margin, and per-unit cost calculations.