COGS Formula Explained: How to Calculate Cost of Goods Sold With Examples

Written by

in

For any business that sells physical products, understanding product profitability starts with knowing what it costs to produce or purchase the items sold. Cost of Goods Sold, commonly called COGS, is one of the most important figures on an income statement because it directly affects gross profit, pricing decisions, tax reporting, and inventory planning.

TLDR: COGS measures the direct cost of inventory that was sold during a specific period. The standard formula is Beginning Inventory + Purchases − Ending Inventory = COGS. For example, if a retailer starts with $20,000 in inventory, buys $15,000 more, and ends with $8,000, its COGS is $27,000. If sales were $45,000, the business would have a gross profit of $18,000, or a 40% gross margin.

What Is COGS?

Cost of Goods Sold represents the direct costs tied to products that were sold during an accounting period. These costs usually include raw materials, finished goods purchased for resale, packaging that is part of the product, freight-in costs, and direct labor used in manufacturing.

COGS does not include general operating expenses such as marketing, rent for an office, administrative salaries, subscriptions, or delivery to customers. Those costs are usually recorded as operating expenses rather than product costs.

In simple terms, COGS answers one question: How much did the business spend to acquire or make the products it sold?

The COGS Formula

The most common COGS formula is:

COGS = Beginning Inventory + Purchases − Ending Inventory

  • Beginning Inventory: The value of inventory available at the start of the period.
  • Purchases: Additional inventory bought or produced during the period.
  • Ending Inventory: The value of inventory still unsold at the end of the period.

This formula works because inventory flows through a business. The company begins with stock, adds more stock, and subtracts what remains unsold. The difference represents the cost of goods that left inventory because they were sold.

Step-by-Step Example

Consider a small home goods retailer calculating COGS for the month of June. The business has the following numbers:

  • Beginning Inventory: $12,000
  • Purchases During June: $9,500
  • Ending Inventory: $6,500

Using the formula:

$12,000 + $9,500 − $6,500 = $15,000

The retailer’s COGS is $15,000. If total sales revenue for June was $25,000, gross profit would be calculated as:

Sales − COGS = Gross Profit

$25,000 − $15,000 = $10,000

The gross margin would be:

Gross Profit ÷ Sales × 100 = Gross Margin

$10,000 ÷ $25,000 × 100 = 40%

This means the retailer keeps 40 cents of every sales dollar before operating expenses are deducted.

What Costs Are Included in COGS?

The costs included in COGS depend on the type of business. A retailer, manufacturer, and food business may all calculate COGS slightly differently.

Common COGS items include:

  • Products purchased for resale
  • Raw materials used in production
  • Direct labor for manufacturing workers
  • Factory supplies directly tied to production
  • Packaging that is part of the finished product
  • Inbound shipping, also called freight-in

Costs usually excluded from COGS include:

  • Advertising and promotional expenses
  • Sales commissions
  • Customer shipping and delivery fees
  • Office rent and utilities
  • Administrative salaries
  • Software subscriptions used for general operations

The key distinction is whether the cost is directly tied to acquiring or producing the goods sold.

COGS Example for a Manufacturer

A furniture manufacturer may have a more detailed COGS calculation because it buys materials and produces finished goods. Suppose the manufacturer has these figures for a quarter:

  • Beginning Inventory: $40,000
  • Raw Material Purchases: $25,000
  • Direct Labor: $18,000
  • Factory Overhead: $7,000
  • Ending Inventory: $22,000

First, the business combines its production-related additions:

$25,000 + $18,000 + $7,000 = $50,000

Then it calculates COGS:

$40,000 + $50,000 − $22,000 = $68,000

The manufacturer’s quarterly COGS is $68,000. This figure helps management evaluate whether materials, labor, or overhead are becoming too expensive compared with revenue.

Why COGS Matters

COGS is more than an accounting figure. It gives decision-makers a clear view of operational efficiency and product profitability. A rising COGS may suggest supplier price increases, waste, theft, poor inventory control, or inefficient production.

For example, if a business has $100,000 in monthly sales and COGS rises from $55,000 to $65,000, gross profit drops from $45,000 to $35,000. That is a 22.2% decrease in gross profit, even though revenue stayed the same. Without tracking COGS, the business might not notice the problem until cash flow becomes tight.

COGS also affects taxable income. Since COGS is deducted from revenue, a higher legitimate COGS lowers taxable profit. However, businesses must use accurate inventory records and consistent accounting methods to support their calculations.

Inventory Valuation Methods and COGS

The value assigned to inventory can change COGS, especially when product costs fluctuate. The most common inventory valuation methods are:

  • FIFO: First in, first out. The oldest inventory costs are assigned to goods sold first.
  • LIFO: Last in, first out. The newest inventory costs are assigned to goods sold first. This method is allowed in some jurisdictions but not all.
  • Weighted Average: Inventory cost is averaged across all similar units available for sale.

When prices are rising, FIFO usually produces a lower COGS and higher gross profit because older, cheaper costs are used first. LIFO usually produces a higher COGS and lower taxable income. Weighted average smooths out cost changes and is often easier for businesses with many similar products.

Common Mistakes When Calculating COGS

Businesses often make COGS errors when inventory records are incomplete or expenses are categorized incorrectly. Common mistakes include:

  • Including operating expenses: Marketing, rent, and administrative costs should not be mixed into COGS.
  • Ignoring freight-in: Shipping paid to bring inventory into the business is often part of inventory cost.
  • Using inaccurate ending inventory: A wrong inventory count can distort profit.
  • Changing methods too often: Switching valuation methods can make financial comparisons unreliable.
  • Failing to account for shrinkage: Theft, damage, and spoilage should be reflected properly.

How COGS Helps With Pricing

COGS is essential for setting profitable prices. If a product sells for $50 and has a COGS of $30, the gross profit is $20. The gross margin is 40%. If the business wants a 50% gross margin, it would need to price the product at $60, assuming the $30 cost remains unchanged.

A business that tracks COGS by product can identify which items are profitable and which ones reduce overall margins. This can guide pricing changes, supplier negotiations, product bundling, or discontinuation of low-margin items.

FAQ

What is the basic COGS formula?

The basic formula is Beginning Inventory + Purchases − Ending Inventory = Cost of Goods Sold.

Is COGS the same as expenses?

No. COGS includes direct product costs, while expenses include broader operating costs such as marketing, office rent, and administrative wages.

Does COGS affect profit?

Yes. COGS is subtracted from sales revenue to calculate gross profit. A higher COGS lowers gross profit if sales remain the same.

Can a service business have COGS?

Some service businesses use a similar category called cost of services. It may include direct labor or materials used to deliver the service, but traditional COGS is most common for product-based businesses.

How often should COGS be calculated?

Many businesses calculate COGS monthly, quarterly, and annually. Frequent tracking helps identify margin changes, inventory issues, and supplier cost increases early.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *