CCalclabhub

Business · 62 calculators

Cost Of Goods Sold Calculator

Cost of goods sold is the direct cost of the inventory a business actually sold during a period. Under the periodic inventory method it is beginning inventory plus purchases minus ending inventory, which gives 55,000 in the worked case. This page is an educational heuristic, not investment advice.

Last updated

Cost of goods sold

$55,000.00

Gross profit
$45,000.00
Gross margin
45.00%
Cost of goods sold at doubled purchases
$105,000.00

Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.

The formula this calculator uses

Cost of goods sold = beginning inventory + purchases - ending inventory

Beginning inventory
Value of unsold stock carried into the period
Purchases
Cost of stock acquired or produced during the period
Ending inventory
Value of stock still on hand at the end of the period
Revenue
Sales recorded for the same period
Cost of goods sold
Direct cost attributed to the goods that were sold

How to check the result by hand

  1. 1

    Take beginning inventory

    Start with the accounting value of stock the business carried into the period. In the worked case that is 20,000. Use the same valuation basis for every period, because changing the basis alters the figure without any change in the physical stock.

  2. 2

    Add purchases made during the period

    Add the cost of goods acquired or produced for sale, which is 50,000 here. This brings the running total to goods available for sale of 70,000. Keep freight, returns and discounts consistent with how the inventory values were set, since mixing treatments breaks the comparison.

  3. 3

    Subtract ending inventory

    Deduct the value of stock still on hand at the end, 15,000 in the worked case, because those goods were not sold and remain an asset. The running total falls from 70,000 to cost of goods sold of 55,000. Reversing this sign is the single most common mistake and would give a result that moves the wrong way.

  4. 4

    Compute gross profit

    Subtract cost of goods sold from revenue. Revenue of 100,000 less 55,000 leaves gross profit of 45,000. This is the amount available to cover operating expenses and contribute to profit, and it sits above all selling and administrative costs.

  5. 5

    Compute gross margin and read the result in context

    Divide gross profit of 45,000 by revenue of 100,000 to get a gross margin of 0.45, or 45%. Rising purchases would push cost of goods sold up and the margin down, while a higher ending inventory would do the opposite. This is the periodic method and an educational heuristic rather than investment advice; real accounts also adjust for freight, discounts and write-offs.

Common Questions

How does the Cost Of Goods Sold Calculator work?

Add purchases to the value of inventory on hand at the start of the period, then subtract the value still on hand at the end. With 20000 beginning, 50000 purchases and 15000 ending, cost of goods sold is 55000. On revenue of 100000 that leaves gross profit of 45000 and a gross margin of 0.45, or 45%; doubling purchases would raise cost of goods sold to 105000.

What do I need to enter in the Cost Of Goods Sold Calculator?

It takes 4 inputs: Beginning inventory, Purchases, Ending inventory, Revenue. Fields that expect a unit say so next to the label.

Where does Cost of goods sold come from?

It comes from COGS = beginning inventory + purchases - ending inventory — add purchases to opening stock to get goods available for sale, then subtract closing stock. 20,000 plus 50,000 gives 70,000; taking away 15,000 leaves 55,000.

What is the most common mistake with the Cost Of Goods Sold Calculator?

Reversing the sign of ending inventory. Ending inventory is subtracted, not added, because those goods were never sold. Adding the 15000 would give 85000 instead of 55000 and would make the figure move opposite to the underlying business.

For worked examples, common mistakes and the limits of this formula, read the full How To Calculate The Cost Of Goods Sold page.