Cost of Goods Sold Calculator
Calculate COGS from inventory and purchases, then compare it with sales revenue to find gross profit. This page also keeps the formula, examples, FAQs, and references close by so you can check the result with confidence.
What This Cost of Goods Sold Calculator Helps You Do
With $5,000 beginning inventory, $30,000 purchases, and $4,000 ending inventory, COGS is $31,000. Review the formula and examples below if you want to see how the result is derived.
This page is meant to give you a fast answer, but it also helps you double-check the math before you make a decision. Start with the inputs that you already know, run the calculation, and then compare the output with the formula, examples, and FAQs below so you can see whether the answer fits the situation you are modeling.
If the result looks off, the usual causes are a unit mismatch, a missing decimal, the wrong scenario, or a value that needs to be entered as a rate instead of a total. The notes on this page are designed to make those checks easy without forcing you to leave the calculator and search for context elsewhere.
- Use the calculator first for a quick estimate.
- Use the formula to understand how the result is built.
- Use the examples to compare common use cases.
- Use the references when the answer depends on a standard or assumption.
Common Checks
A quick result is useful, but the best result is one that still makes sense when you look at it a second time. If you are comparing scenarios, try changing one input at a time so you can see which variable has the biggest impact on the final answer. That makes it much easier to spot whether the calculation matches your expectations.
It also helps to keep the context of the problem in mind. A calculator can tell you the math, but you still need to decide whether the input represents a total, a rate, an average, or a category-specific assumption. When in doubt, start with a simple example from the page and scale up from there.
- Check that every unit matches the rest of the problem.
- Keep rates, totals, and averages separate.
- Adjust one variable at a time when testing scenarios.
- Use the smallest realistic input first, then scale upward.
Scenario Planning
This calculator is especially useful when you want a quick answer before you commit time, money, or effort. Try one baseline input set, then change a single number and compare the result so you can see how sensitive the answer is to that variable.
That makes the page useful for more than just arithmetic. It becomes a small decision aid that helps you compare options, test assumptions, and explain the final number with confidence when you need to share it with someone else.
Result
--
How to Calculate Cost of Goods Sold Calculator
- Enter beginning inventory: Use the stock value you started with.
- Add purchases and ending inventory: These determine how much inventory was sold.
- Read COGS or gross profit: You can solve for cost of goods sold or compare it against sales.
Cost of Goods Sold Calculator Formula
| Variable | Meaning | Unit |
|---|---|---|
| Beginning inventory | Inventory available at the start of the period | $ |
| Purchases | Inventory bought during the period | $ |
| Ending inventory | Inventory left at period end | $ |
Worked Examples
- Beginning inventory: $5,000
- Purchases: $30,000
- Ending inventory: $4,000
Result: $31,000
That is the cost of inventory sold during the period.
- Beginning inventory: $12,000
- Purchases: $40,000
- Ending inventory: $10,000
Result: $42,000
The greater purchase volume pushes COGS higher.
- Sales revenue: $75,000
- Beginning inventory: $8,000
- Purchases: $25,000
- Ending inventory: $7,000
Result: $49,000 gross profit
Subtracting COGS from sales shows the amount left for operating expenses.
How to Interpret Your Results
| Range | Meaning | Action |
|---|---|---|
| Lower COGS | Inventory costs are relatively controlled | Check whether sales volume stays healthy |
| Typical COGS | The sold inventory cost looks normal | Compare against margin goals |
| Higher COGS | Inventory cost is consuming more revenue | Review pricing, shrinkage, and supplier costs |
Frequently Asked Questions
References
Last reviewed: March 2026