Cost of goods sold

COGS=BI+PEICOGS=BI+P-EI

What it does

Calculates cost of goods sold from the supplied values.

When to use it

Use this business formula when the named quantities are known.

Variables

Worked example

{
  "inputs": {
    "purchases": 700,
    "endingInventory": 200,
    "beginningInventory": 300
  },
  "result": 800
}

Common mistakes

Check units, signs, brackets and that every value is entered in the stated units.