Cost of Goods Sold Calculator
Calculate your Cost of Goods Sold (COGS) to analyze inventory costs, gross profit, and profit margins
Calculate the Cost of Goods Sold (COGS) using the inventory method. Enter your beginning inventory, purchases, and ending inventory to determine your direct production costs and analyze profit margins.
Quick Examples
Calculation Mode
Inventory Values
Start of period
During period
End of period
Revenue (Optional)
Enter to calculate profit margins
What do you want to find?
Enter Known Values
Cost of Goods Sold
Inventory Flow
Beginning
Purchases
Ending
COGS
Revenue
Gross Profit
Gross Margin
COGS Ratio
Average Inventory
(Beginning + Ending) / 2
Inventory Turnover
Times inventory sold & replaced
Industry Benchmarks
| Industry | Typical COGS Ratio | Your Ratio |
|---|---|---|
| Software/Tech | 10-25% | |
| Food Service | 28-35% | |
| Manufacturing | 50-70% | |
| Retail | 60-75% |
Required
To achieve COGS of
Calculation
Beginning Inventory = COGS + Ending Inventory - Purchases
Beginning = + -
Beginning =
Purchases = COGS + Ending Inventory - Beginning Inventory
Purchases = + -
Purchases =
Ending Inventory = Beginning Inventory + Purchases - COGS
Ending = + -
Ending =
If you like this calculator
Please help us simply by sharing it. It will help us a lot!
Related Calculators
Other calculators you might find useful.
Stripe Fee Calculator
Calculate Stripe transaction fees and determine the right amount to charge
Jensen's Alpha Calculator
Measure portfolio performance against expected returns using the Capital Asset Pricing Model (CAPM)
Future Value Calculator
Calculate the future value of your investments and savings over time
Marriage Tax Calculator
Calculate how marriage affects your taxes - discover if you'll face a marriage penalty or bonus
VA Mortgage Calculator
Calculate your VA home loan payments, funding fee, and total costs with zero down payment
Bond Calculator
Calculate bond prices, yields, and returns for your fixed-income investments
About Cost of Goods Sold Calculator
What is Cost of Goods Sold (COGS)?
Cost of Goods Sold (COGS) represents the direct costs attributable to the production of goods sold by a company. It includes the cost of materials, direct labor, and manufacturing overhead directly tied to production.
COGS Formula
The basic formula for calculating COGS is:
COGS = Beginning Inventory + Purchases - Ending Inventory
Understanding the Components
- Beginning Inventory: The value of inventory at the start of the accounting period
- Purchases: Total cost of inventory acquired during the period (raw materials, finished goods)
- Ending Inventory: The value of unsold inventory remaining at the end of the period
What COGS Includes
Direct Costs
- Raw materials and supplies
- Direct labor costs (wages for production workers)
- Manufacturing overhead directly tied to production
- Freight-in costs for inventory
- Storage costs for production materials
What COGS Excludes
- Selling, general, and administrative expenses (SG&A)
- Research and development costs
- Marketing and advertising expenses
- Distribution and delivery costs to customers
- Office rent and utilities (unless production-related)
Related Financial Metrics
Gross Profit
Gross Profit = Revenue - COGS
Gross Profit Margin
Gross Profit Margin = (Gross Profit / Revenue) × 100%
COGS Ratio
COGS Ratio = (COGS / Revenue) × 100%
Inventory Turnover
Inventory Turnover = COGS / Average Inventory
Average Inventory = (Beginning Inventory + Ending Inventory) / 2
Industry COGS Benchmarks
| Industry | Typical COGS Ratio |
|---|---|
| Retail | 60-75% |
| Manufacturing | 50-70% |
| Food Service | 28-35% |
| Software/Tech | 10-25% |
| E-commerce | 55-70% |
Inventory Valuation Methods
The method used to value inventory significantly impacts COGS:
- FIFO (First-In, First-Out): Assumes oldest inventory is sold first
- LIFO (Last-In, First-Out): Assumes newest inventory is sold first
- Weighted Average: Uses average cost of all inventory
- Specific Identification: Tracks actual cost of each item
Best Practices for COGS Management
- Track Inventory Accurately: Implement inventory management systems
- Optimize Purchasing: Negotiate better terms with suppliers
- Reduce Waste: Minimize shrinkage, spoilage, and obsolescence
- Improve Production Efficiency: Reduce direct labor costs per unit
- Monitor Regularly: Compare COGS ratio against industry benchmarks
- Consider Automation: Invest in technology to reduce production costs