Beginning inventory
The value of your stock at cost at the start of the period. It is the ending inventory of the last period, so it should match your last count.
Enter your beginning inventory, purchases and ending inventory to get the cost of goods sold (COGS) for the period. Add revenue to see gross profit and gross margin. The calculator also gives your average inventory and inventory turnover.
Your results
Of the €35,000.00 you could sell, €23,000.00 was sold, at cost. €12,000.00 is still in stock.
With revenue
Enter every amount at cost and excl. VAT. What counts as COGS, and how you value stock, depends on your accounting rules.
The start values are illustrative data.
How it works
Illustrative data. A shop started the month with €10,000.00 of stock and bought €25,000.00 more. It ended the month with €12,000.00 of stock and €46,000.00 of revenue, all at cost and excl. VAT.
| Step | Calculation | Result |
|---|---|---|
| Goods available to sell | €10,000.00 + €25,000.00 | €35,000.00 |
| Cost of goods sold | €35,000.00 − €12,000.00 | €23,000.00 |
| Average inventory | (€10,000.00 + €12,000.00) ÷ 2 | €11,000.00 |
| Inventory turnover | €23,000.00 ÷ €11,000.00 | 2.09 |
| Gross profit | €46,000.00 − €23,000.00 | €23,000.00 |
| Gross margin | €23,000.00 ÷ €46,000.00 | 50% |
The month’s sales cost €23,000.00 to buy. The €12,000.00 still on the shelf waits for next month. Of every €1.00 of revenue, €0.50 is left after COGS. The average stock sold through 2.09 times.
What goes into COGS
The value of your stock at cost at the start of the period. It is the ending inventory of the last period, so it should match your last count.
What you bought during the period, at cost and excl. VAT. It is not what you sold: stock you bought and still hold stays out of COGS.
Freight-in and other costs of getting products ready to sell, if your accounting counts them in COGS. Leave the field empty if not.
The value of your stock at cost at the end of the period, from a count or your inventory system. It cannot be more than the goods available to sell.
(Beginning + ending inventory) ÷ 2. It is the base for inventory turnover: COGS ÷ average inventory shows how often you sold through your stock.
(Revenue − COGS) ÷ revenue. It sits before shipping, ads, payment fees and returns. Contribution margin takes those off as well.
Limits
A shop-wide COGS total hides the products that lose money. Per-product COGS is the starting point for margin data.
Gross profit leaves out ad spend, shipping to customers, payment fees and returns. Use the contribution margin for those.
What counts as COGS, and how stock is valued (FIFO, average cost and others), depends on your accounting rules and country. Your accountant decides it for tax filings.
Ending inventory drives the result. A count that is €1,000.00 too high makes COGS €1,000.00 too low.
Paste this script tag into your own page to show the calculator there, with the same maths and no sign-up. It fits the width of your page, resizes with the calculator and follows the visitor’s light or dark setting.
The script adds the calculator and a link to the full version under it. Keep the attribution link: it credits the calculator.
Product Metrics segments your products by advertising clicks and return against your target, then writes each segment to a Merchant Center label your campaigns use.