Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4791 pages

Free tool · Business and sellers

COGS calculator

Cost of goods sold, or COGS, is what the items you sold cost you. Fill in your stock at the start and end of the period and what you bought, and the tool does the sum.

  • Free
  • No sign-up
  • Runs in your browser

By Maaz Zindani · Updated

What your stock was worth on day one.
Stock you bought to resell.
Delivery costs you paid to get stock to you.
Only if you make the goods yourself.
Money back from suppliers. It lowers the cost.
What is still unsold on the last day.
Add it to see gross profit and margin.
Cost of goods sold

$63,000.00for the period

  • Goods available $81,000.00
  • Gross margin 37.00%
Start inventory
$20,000.00
Costs added
$62,500.00
Returns and discounts
-$1,500.00
Left on the shelf
-$18,000.00
Sales
$100,000.00
Gross profit
$37,000.00

Your numbers: 20,000.00 + 62,500.00 − 1,500.00 − 18,000.00 = 63,000.00

How to use the COGS Calculator

  1. Type the Inventory at the start of the period and the Purchases during the period.
  2. Add Freight-in, Labor and other costs and Returns and discounts if they apply. Empty boxes count as zero.
  3. Type the Inventory at the end of the period, the value of what you still hold.
  4. Add Sales in the period if you want the gross profit and margin, then read the result card.

What is the COGS formula?

COGS is the cost of the goods you actually sold in a period. The formula is start inventory + costs added − end inventory. You begin with the stock you had, add what you bought or made, and take away what is still unsold. What remains is the cost of what went out the door.

Use the tool's starting figures. Stock at the start was 20,000.00. You bought 60,000.00 of goods and paid 2,500.00 to have them delivered, which makes 62,500.00 of costs added. You got 1,500.00 back in returns, so the goods available to sell were 81,000.00. At the end, 18,000.00 was still on the shelf. COGS is 81,000.00 − 18,000.00 = 63,000.00.

The IRS publication for small businesses, Publication 334, lays out the same steps for the cost of goods sold part of Schedule C: beginning inventory, purchases and other costs, then ending inventory taken off. Different countries and tax systems have their own rules on what may be included, so check yours.

Which costs go into cost of goods sold?

Include what it cost to get the goods ready to sell. That means the price you paid suppliers, freight and delivery on the way in, and for a maker, the labor and materials that go into the product. Put the money-back items, such as supplier returns and discounts, in the returns box. They lower the cost.

A shop that only resells has no labor in COGS. With start stock of 20,000.00, purchases of 60,000.00 and end stock of 18,000.00, its COGS is 62,000.00.

A maker adds the cost of making. Take start stock of 5,000.00, materials bought for 12,000.00, labor and other production costs of 8,000.00 and end stock of 4,000.00. COGS is 21,000.00. If sales were 40,000.00, the gross profit is 19,000.00, or 47.50% of sales.

Costs of selling the goods, such as ads, rent for the shop and office wages, are not part of COGS. They come after gross profit, in the operating costs.

How does the ending inventory change the result?

Stock you have not sold stays on the books as an asset, so a higher ending inventory means a lower COGS. With ending stock of 10,000.00, the same period gives a COGS of 71,000.00. With 18,000.00 it gives 63,000.00.

That makes the stock count important. A count that is too high makes COGS too low and profit too high. A count that is too low does the opposite. The table shows the effect with sales of 100,000.00.

The same period with different ending inventory (sales 100,000.00)
Ending inventoryCOGSGross profitGross margin
10,000.0071,000.0029,000.0029.00%
14,000.0067,000.0033,000.0033.00%
18,000.0063,000.0037,000.0037.00%
22,000.0059,000.0041,000.0041.00%
26,000.0055,000.0045,000.0045.00%

The tool refuses figures that cannot be true: ending stock above the goods available, or returns above everything you bought. That usually means a typing slip or a count in the wrong period.

How should I count my ending inventory?

Count the stock on the last day of the period, and value each item at what it cost you, not at the price you plan to sell it for. Add the values up and type the total in the end box. Doing it on the same day each period keeps the figures comparable.

Keep the end figure of one period as the start figure of the next. If the two do not match, the gap will show up as a false cost or a false gain. In the example, the 18,000.00 counted at the end becomes the start stock of the following period.

Damaged or stolen stock is a reason the count may come in lower than your records. That loss lands in COGS here, because less stock is left. Note it down so you can explain it later.

What do I do with COGS next?

Subtract COGS from sales to get gross profit. In the first example, sales of 100,000.00 less COGS of 63,000.00 leave 37,000.00, a gross margin of 37.00%. The profit margin calculator takes you on to operating and net margin.

To see how fast you sell through your stock, divide COGS by your average inventory in the inventory turnover calculator. To find the stock level at which to reorder, see the reorder point calculator.

Use the same period and the same way of valuing stock in every box. This tool is for working things out. For your tax return or accounts, follow your accountant and the rules where you operate.

Use it with

Questions

How do you calculate COGS?

Start inventory plus purchases and other costs, minus end inventory. With the example figures: 20,000.00 + 62,500.00 − 1,500.00 − 18,000.00 = 63,000.00.

Is freight included in COGS?

Freight you pay to bring goods in is usually counted as part of the goods cost. Freight to deliver to a customer is a selling cost and normally is not. Check the rules where you operate.

Do returns reduce COGS?

Returns and discounts that you get from your suppliers reduce what you paid, so they lower COGS. Customer returns are a different matter and reduce sales.

What if I have no stock at the start?

Leave the start box at zero. Then COGS is just what you bought minus what is left, for example 60,000.00 − 18,000.00 = 42,000.00.

How is gross profit worked out?

Sales minus COGS. Sales of 100,000.00 minus 63,000.00 gives 37,000.00, a margin of 37.00%.

Do service businesses have COGS?

Many do not carry stock, so they often have no COGS. Some count the direct labor of delivering the service. Ask an accountant how it applies to you.

The tool's results are computed in your browser by the code on this page, using the sources listed above; the explanations are checked against the tool's own output.