Cost of Sales (COS), also known as Cost of Goods Sold (COGS), is calculated by adding your beginning inventory to your purchases during a period and then subtracting your ending inventory. This formula is essential for determining your gross profit and understanding the direct costs associated with producing or purchasing the products you sell.

What You'll Need

  • A complete record of beginning inventory (the value of stock held at the start of the period).
  • A detailed list of all inventory purchases made during the period (including direct materials and direct labor).
  • A precise count or valuation of ending inventory (the value of stock remaining at the end of the period).
  • Access to your general ledger or accounting software to pull these figures accurately.
  • A consistent valuation method (such as FIFO, LIFO, or Weighted Average Cost) used throughout your accounting records.

Step-by-Step

  1. Determine your Beginning Inventory: Locate the total value of all inventory you had on hand at the very start of your accounting period (e.g., the first day of the month or year). This figure should match the ending inventory from your previous period. Ensure this value is based on the same valuation method you intend to use for the current period to maintain consistency.
  2. Calculate Total Purchases: Sum up all costs incurred to acquire or produce the goods intended for sale during the period. This includes the raw cost of materials, freight-in charges (shipping costs to get items to you), and any direct costs like factory labor or manufacturing overhead that are directly tied to creating the product. Do not include indirect costs like office rent or marketing, as these belong in operating expenses rather than COS.
  3. Calculate Cost of Goods Available for Sale: Add your Beginning Inventory to your Total Purchases. The resulting sum represents the total value of all products that were available to be sold to customers during that specific timeframe.
  4. Determine your Ending Inventory: Perform a physical count or use your inventory management system to value the stock that remains unsold at the end of the period. It is vital that this valuation uses the same method (e.g., FIFO) used in the previous steps to avoid distorting your profit margins.
  5. Apply the Final COS Formula: Subtract your Ending Inventory from your Cost of Goods Available for Sale. The resulting number is your Cost of Sales for that period. The full formula looks like this: COS = (Beginning Inventory + Purchases) - Ending Inventory.
  6. Verify against Gross Profit: To ensure your calculation is working correctly, subtract your COS from your Total Revenue. The result should equal your Gross Profit. If the numbers do not align with your sales records, re-examine your inventory counts or purchase entries.

Common Mistakes

One of the most frequent errors in COS accounting is the misclassification of expenses. Many business owners accidentally include "indirect costs"—such as administrative salaries, utility bills for the corporate office, or advertising expenses—into the COS calculation. These are operating expenses (OPEX), not cost of sales. Including them will artificially deflate your gross profit and give you a false sense of your product's actual margin.

Another common mistake is failing to maintain a consistent inventory valuation method. If you use First-In, First-Out (FIFO) for one month and then switch to Last-In, First-Out (LIFO) the next without a formal accounting change process, your COS will be wildly inaccurate. This makes it impossible to perform meaningful year-over-year or month-over-month comparisons because the underlying math has changed.

Finally, neglecting to account for "shrinkage" is a significant pitfall. Shrinkage refers to inventory lost due to theft, damage, or administrative errors. If your physical count (Ending Inventory) is lower than what your digital records suggest, you must account for this loss. If you ignore shrinkage, your COS will appear lower than it actually is, causing you to overstate your profits.

Tips

To make COS calculations more efficient, implement a robust inventory management system that integrates directly with your accounting software. Real-time tracking reduces the manual labor required at the end of the month and minimizes the risk of human error during data entry. Regular, small-scale "cycle counts" (counting a small subset of inventory every week) are much more effective than performing one massive, exhausting physical count at the end of the year. Cycle counting helps you spot discrepancies early, making it easier to identify where theft or damage is occurring.

Always keep detailed documentation for your "purchases" section. This should include not just the invoice price of the goods, but also any ancillary costs like customs duties, freight, and handling. These are all part of the cost of getting the product ready for sale. By capturing these costs accurately, your COS becomes a much more powerful tool for pricing your products correctly.

Troubleshooting

If your COS calculation seems incorrect or does not align with your bank statements and sales reports, follow these steps in order:

  1. Check for Data Entry Errors: Review your purchase invoices and beginning inventory figures. A single misplaced decimal point or a typo in a purchase amount can throw the entire calculation off.
  2. Verify Inventory Valuation Consistency: Ensure that you are using the exact same valuation method (FIFO, LIFO, or Average Cost) for both your beginning and ending inventory. If you changed methods mid-period, you must recalculate using a single consistent approach.
  3. Reconcile Physical vs. Digital Inventory: If your COS is unexpectedly low, your ending inventory might be overstated. Conduct a fresh physical count to ensure that the items you think you have in stock actually exist and are in sellable condition.
  4. Audit Direct vs. Indirect Costs: Review your ledger to ensure no operating expenses (like marketing or office supplies) have been accidentally coded to your Cost of Goods Sold account.
  5. Review Returns and Allowances: Ensure that customer returns and vendor allowances (discounts given by suppliers) are properly accounted for. Returns should decrease your revenue, while vendor allowances should decrease your total purchases.

Frequently Asked Questions

What is the difference between COS and COGS?

In most contexts, they are used interchangeably. However, COS (Cost of Sales) is often used by service-based businesses to describe the direct costs of providing a service, while COGS (Cost of Goods Sold) is more strictly used by businesses that sell physical products.

How does COS affect my taxes?

COS is a business expense that is subtracted from your total revenue to determine your gross profit. Since your total profit is the basis for your taxable income, a higher COS results in a lower taxable profit, which can reduce your overall tax liability.

Can COS be zero?

For a product-based business, COS should never be zero if you have made sales. If it is zero, it likely means you haven't recorded any purchases or inventory costs, or you are incorrectly categorizing all costs as operating expenses.

Why is my COS higher than my revenue?

If COS is higher than revenue, you are selling your products at a loss. This means the direct cost to acquire or make the item is greater than the price you are charging customers. This is a critical sign that you need to either raise your prices or find cheaper suppliers.

Does shipping to customers count in COS?

Generally, no. Shipping costs to get products to you (freight-in) are included in COS. However, shipping costs to get products to your customers (freight-out) are typically treated as a selling/operating expense, not part of the cost of goods sold.