Cost of Goods Sold (COGS) Calculator
Calculate your Cost of Goods Sold using the inventory accounting formula. Includes gross profit margin and COGS as a percentage of revenue.
COGS Calculator
Results update instantly as you type
Enter Values
Embed Code
Copy and paste this HTML snippet into any web page to embed this calculator directly.
<iframe src="http://127.0.0.1:54963/embed/ecommerce/cogs-calculator?ref=embed" title="Cost of Goods Sold (COGS) Calculator" width="100%" style="max-width:600px; border:none; height:500px;" loading="lazy"></iframe>
Direct Link
Share this link to let others open the calculator in their browser.
Cost of Goods Sold
$125,000.00
Gross Margin
50.00%
COGS %
50.00%
The Formula
Cost of Goods Sold is calculated using the basic inventory accounting formula, representing the direct cost of the products sold during a period. It is one of the most important numbers on any income statement.
Variable Definitions
Beginning Inventory
The cost value of all inventory on hand at the start of the accounting period. This matches the ending inventory of the prior period.
Net Purchases / Production
All costs of new inventory purchased or manufactured during the period, adjusted for returns and discounts.
Ending Inventory
The cost value of remaining unsold inventory at the end of the period. Must be physically counted or estimated using a costing method.
How to Use This Calculator
- 1
Enter the value of your beginning inventory (from the start of the period).
- 2
Enter the total cost of inventory purchased or produced during the period.
- 3
Enter the value of unsold inventory remaining at the end of the period.
- 4
Optionally enter total revenue to see gross profit and margin calculations.
- 5
Review COGS as a percentage of revenue — if it is too high, explore supplier alternatives or price increases.
Common Applications
- Calculating true product cost for inventory accounting and tax reporting at the end of each accounting period
- Determining gross profit and gross margin by subtracting COGSThe direct cost of producing or purchasing goods sold, including materials and labor. Used to calculate gross profit. from revenue to evaluate business profitability
- Tracking inventory efficiency by monitoring COGSThe direct cost of producing or purchasing goods sold, including materials and labor. Used to calculate gross profit. as a percentage of revenue month over month to spot cost trends
- Comparing COGSThe direct cost of producing or purchasing goods sold, including materials and labor. Used to calculate gross profit. across different product lines to identify which products are most profitable to sell
COGS formula — beginning inventory plus purchases minus ending inventory
Understanding the Concept
COGSThe direct cost of producing or purchasing goods sold, including materials and labor. Used to calculate gross profit. is a critical income statement line item. It represents the direct cost of the products a business sells. Lower COGSThe direct cost of producing or purchasing goods sold, including materials and labor. Used to calculate gross profit. with the same revenue means higher gross profit and margin. COGSThe direct cost of producing or purchasing goods sold, including materials and labor. Used to calculate gross profit. only includes costs directly tied to production: raw materials, direct labor, and manufacturing overhead. It does NOT include selling expenses, marketing, or administrative overhead — those are operating expenses. Tracking COGSThe direct cost of producing or purchasing goods sold, including materials and labor. Used to calculate gross profit. accurately is essential for understanding true product profitability and pricing strategy. Real-world example: a clothing brand reports beginning inventory of $50,000, makes $120,000 in purchases, and has $45,000 in ending inventory. Their COGSThe direct cost of producing or purchasing goods sold, including materials and labor. Used to calculate gross profit. is $125,000. If revenue is $250,000, gross profit is $125,000 (50% margin). If the owner overestimates ending inventory at $55,000, COGSThe direct cost of producing or purchasing goods sold, including materials and labor. Used to calculate gross profit. drops to $115,000 and margin inflates to 54% — creating a false picture of profitability that will reverse when the inventory error is discovered. This is why physical inventory counts and accurate costing methods matter so much. For a manufacturer, COGSThe direct cost of producing or purchasing goods sold, including materials and labor. Used to calculate gross profit. also includes factory labor and overhead. A furniture maker spending $200 on wood, $50 on hardware, $80 in direct labor, and $30 in factory overhead per table has a COGSThe direct cost of producing or purchasing goods sold, including materials and labor. Used to calculate gross profit. of $360 per table.
Frequently Asked Questions
Sources & References
Related Calculators
Reviews
No reviews yet. Be the first to share your experience with Cost of Goods Sold (COGS) Calculator.
Write a Review
