Cost of Goods Sold COGS Formula + Calculator

Home » Tax Tips » Cost of Goods Sold COGS Formula + Calculator

How to compute cost of goods sold

This amount includes the cost of the materials and labor directly used to create the good. It excludes indirect expenses, such as distribution costs and sales force costs. The time period you pick is up to you, but we recommend calculating your cost of goods sold at least quarterly. Running the formula once a month is a great way to stay on top of inventory costs—a particularly good idea if you’ve just gotten your business up and running. And you’ll need to calculate your yearly COGS to accurately file your taxes at the end of the year.

How to compute cost of goods sold

For worthless inventory, you must provide evidence that it was destroyed. For obsolete (out of date) inventory, you must also show evidence of the decrease in value. To use the inventory cost method, you will need to find the value of your inventory.

Cost of Goods Sold Calculation Example (COGS)

Determining your beginning inventory’s value shouldn’t be too complicated. For example, if you were a fabric store owner, you’d know exactly how much you paid your supplier for each bolt of cloth or skein of yarn. You’d simply add up how much it cost to acquire each product and, voilà, you’ve found your beginning inventory’s total value. Periodic physical inventory and valuation are performed to calculate ending inventory. Ending inventory costs can be reduced for damaged, worthless, or obsolete inventory.

This means that the inventory value recorded under current assets is the ending inventory. FIFO accounting assumes that a company is selling its oldest products before its newest ones. And as prices tend to rise over time, the assumption is that a company is selling its more affordable products before its more expensive ones. This method uses the specific cost of each unit of the inventory or the goods, to derive at the ending inventory and COGS for each period.

What items are included in the cost of goods sold?

You might also keep an inventory of parts or materials for products that you make. As revenue increases, more resources are required to produce the goods or service. COGS is often the second line item appearing on the income statement, coming right after sales revenue. Instead, they would include the cost of those items as tax deductions for operational costs. Any additional productions or purchases made by a manufacturing or retail company are added to the beginning inventory.

  1. But from this point forward, you’ll need to calculate only your ending inventory.
  2. And as prices tend to rise over time, the assumption is that a company is selling its more affordable products before its more expensive ones.
  3. Operating expenses are often known as selling, general and administrative expenses – these costs typically make up the bulk of this entry.
  4. With accrual accounting, you record costs as soon as they have been fixed (or you can estimate them reasonably accurately).
  5. When the cost of sales of a good/service is higher than COGS, it is a sign that your input cost is higher than your direct cost.

COGS is then subtracted from the total revenue to arrive at the gross margin. COGS is not addressed in any detail in generally accepted accounting principles (GAAP), but COGS is defined as only the cost of inventory items sold during a given period. Not only do service companies have no goods to sell, but purely service companies also do not have inventories. If COGS is not listed on a company’s income statement, no deduction can be applied for those costs. Cost of goods sold (COGS) refers to the direct costs of producing the goods sold by a company.


Last month was a good month, and your remaining inventory at the end of the month was INR 89,50,187. Try and calculate COGS by yourself before you scroll down to see the answer. At this point, you have all the information you need to do the COGS calculation. You can do it on a spreadsheet or have your tax professional help you.

Are salaries included in COGS?

Calculating your cost of goods sold tells you how much it costs to create a product—so if you know your COGS, you know what price to sell your goods at to turn a profit. COGS does not include general selling expenses, such as management salaries and advertising expenses. These costs will fall below the gross profit line under the selling, general and administrative (SG&A) expense section. The gross profit helps determine the portion of revenue that can be used for operating expenses (OpEx) as well as non-operating expenses like interest expense and taxes.

Operating Expenses vs. COGS

Costs of revenue exist for ongoing contract services that can include raw materials, direct labor, shipping costs, and commissions paid to sales employees. These items cannot be claimed as COGS without a physically produced product to sell, however. The IRS website even lists some examples of “personal service businesses” that do not calculate COGS on their income statements.

Variable costs are costs that change from one time period to another, often changing in tandem with sales. To calculate it, add the beginning inventory value to the additional inventory cost and subtract the ending inventory value. Cost of goods sold (COGS) is literally the cost of producing the goods a company then sells. In the case of physical goods, it generally includes the value of existing inventory plus any related materials and direct labour costs incurred over the year. It may also include the cost of packing and transporting the goods to their end destination. You must keep track of the cost of each shipment or the total manufacturing cost of each product you add to inventory.

When inventory is artificially inflated, COGS will be under-reported which, in turn, will lead to a higher-than-actual gross profit margin, and hence, an inflated net income. LIFO is where the latest goods added to the inventory are sold first. During periods of rising prices, goods with higher costs are sold first, leading to a higher COGS amount. Whatever inventory valuation method you choose, it’s important to stick to it consistently.