Cost of Goods Sold (COGS) Calculator

Calculate your true product costs, gross profit, and margin. Optimize inventory management and pricing strategies with accurate COGS analysis.

① Calculate COGS & Gross Profit

$
Inventory value at start of period.
$
Total cost of goods bought or manufactured during period.
$
Inventory value at end of period.
$
Optional: total sales for gross margin calculation.

② Target Margin Pricing & COGS Planning

Set a desired gross margin or selling price based on your COGS. Optimize your pricing strategy.

$
Enter your COGS (from section ① or manually).
%
Margin = (Price - COGS) / Price × 100
$
Price to achieve target margin.
💰 Gross Profit per Sale: $0.00
📊 Achieved Gross Margin:
⚖️ Equivalent Markup on COGS:
Adjust target margin or selling price – both update in real time.

Recent COGS Calculations

No previous calculations

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 material costs, direct labor, and overhead directly tied to production. The basic formula is:

COGS = Beginning Inventory + Purchases / Production Costs − Ending Inventory

Accurate COGS calculation is essential for determining gross profit and gross margin. It directly impacts your taxable income and profitability analysis. For retailers, COGS includes the purchase price of goods plus freight. For manufacturers, it includes raw materials, labor, and factory overhead.

Why it matters: Understanding COGS helps you price products profitably, manage inventory efficiently, and evaluate business performance. Our tool also helps you set prices based on target gross margins to achieve financial goals.

Key Formulas & Insights

COGS = Beginning Inventory + Purchases − Ending Inventory

Gross Profit = Revenue − COGS

Gross Margin % = (Revenue − COGS) / Revenue × 100

Target Selling Price (given COGS & desired margin) = COGS / (1 − Margin%)

Markup on COGS = (Price − COGS) / COGS × 100

Inventory Turnover (simplified) = COGS / Average Inventory

Frequently Asked Questions

What’s included in COGS?

COGS includes direct material, direct labor, and manufacturing overhead. For retailers, it’s the cost of inventory sold. Excluded are selling, general, and administrative expenses (SG&A).

How do I reduce COGS?

Negotiate better supplier prices, reduce waste, improve inventory management, optimize production efficiency, or consider alternative sourcing.

What is a good gross margin?

It varies by industry: retail typically 20-50%, software 70-85%, manufacturing 25-35%. Use our tool to benchmark and set pricing targets.

Can I use this for service businesses?

Yes, for services, COGS is often called "Cost of Services" – direct labor, subcontractors, and materials directly tied to delivering the service.