Calculators

Cost of Goods Sold Calculator

Calculate cost of goods sold from beginning inventory, inventory purchases, and ending inventory using the standard inventory accounting formula. Enter all amounts in the same currency and accounting period.

Loading calculator...

What this Cost of Goods Sold Calculator does

The Cost of Goods Sold Calculator estimates the value of inventory that a business sold or used during an accounting period. It applies a standard inventory equation using three amounts: the value of inventory at the beginning of the period, purchases made for inventory during the period, and the value of inventory still on hand at the end. The result is labeled Cost of Goods Sold.

The calculator is intended for a straightforward periodic calculation. Enter all three amounts in the same currency and make sure they refer to the same business and accounting period. The result follows this formula: beginning inventory + inventory purchases − ending inventory. It does not decide which costs belong in inventory, assign a cost to individual items, or prepare a complete set of financial statements.

Cost of goods sold, often shortened to COGS, represents the recorded cost of the products sold during the period. For a business that sells physical goods, tracking this figure helps explain how much inventory cost was associated with sales. It is one component of gross profit calculations, alongside revenue. The calculator does not assess whether the amounts you enter comply with your accounting policies or reporting requirements.

How to use the Cost of Goods Sold Calculator

Gather inventory figures for a single period, such as a month, quarter, or financial year. Use values from your records and enter each in the corresponding field. The calculator accepts nonnegative amounts up to 10,000,000 currency units for each input, with decimal steps of 0.01.

  • Beginning inventory is the recorded value of inventory available at the start of the period. It generally corresponds to the previous period’s ending inventory, subject to any documented adjustments.
  • Inventory purchases is the amount recorded for inventory acquired during the period under the method and policies used by the business.
  • Ending inventory is the recorded value of inventory remaining at the close of the period.

After entering the amounts, read the result in the same currency units. Check that you have not mixed periods, currencies, or measurement bases. For example, do not enter beginning inventory in dollars, purchases in euros, and ending inventory in dollars. The arithmetic can return a number in such a case, but it would not represent a meaningful COGS figure.

Worked example: suppose a small shop starts the quarter with 12,000 currency units of inventory, records 7,500 in inventory purchases, and has 4,000 in ending inventory. Applying the calculator’s formula gives 12,000 + 7,500 − 4,000 = 15,500 currency units of cost of goods sold for that quarter. This example demonstrates the arithmetic only. The amounts are illustrative and do not represent a typical business result.

How the Cost of Goods Sold Calculator formula works

The formula is beginning inventory + inventory purchases − ending inventory. Beginning inventory and purchases together represent the inventory cost available during the period, according to the figures supplied. Subtracting ending inventory removes the value assigned to goods that remain in stock. The remainder is the calculated cost associated with inventory that left stock during the period.

This relationship is useful because a closing stock count alone does not show how much inventory was sold. The calculation considers both what the business started with and what it added. For instance, a business might have relatively modest purchases but still sell inventory it had already acquired in an earlier period. Beginning inventory captures that starting balance.

The result depends directly on the accuracy and consistency of the three inputs. If ending inventory is understated, the calculated COGS will be higher. If ending inventory is overstated, the result will be lower. The equation does not verify physical stock, inspect invoices, or determine the appropriate valuation of each item. Those tasks depend on recordkeeping and the accounting approach used by the business.

The calculator uses simple subtraction and addition, so it does not need a denominator or a percentage assumption. A result below zero can arise if the entered ending inventory exceeds beginning inventory plus purchases. That outcome is a prompt to review the inputs, period boundaries, and any relevant adjustments. The calculator does not automatically correct the figure or decide whether an unusual result is valid.

Use cases for the Cost of Goods Sold Calculator

A small retailer can use the calculation as a quick check after organizing beginning stock, purchases, and closing stock for a period. A food producer or wholesaler may also use it as a basic summary of inventory cost, provided its records use figures that fit the same definition and period. The calculation can help a business owner understand how inventory movement flows into a reported operating figure.

It can also support a planning worksheet when a business wants to compare periods. A user could calculate COGS separately for several months, then review the results alongside sales and inventory records. Such comparisons need consistent periods and accounting treatment to be useful. Changes may reflect sales volume, purchase timing, stock valuation, recording corrections, or other factors, so the calculator alone cannot explain why a figure changed.

For an operations team, the result can provide a starting point for reviewing purchasing records and stock counts. The figures may help identify a mismatch between what was expected to remain and what the records show. Any discrepancy should be checked against source documents and inventory procedures. The formula is a summary tool, not an audit or a substitute for reconciling records.

Other factors to consider when calculating cost of goods sold

Businesses may use different inventory valuation methods and accounting policies. The calculator assumes that each input is already measured on a consistent basis. It does not choose a valuation method, determine whether freight or other acquisition costs should be included, or account for returns, discounts, spoilage, write-downs, or manufacturing overhead. Treatment of these items depends on the business’s circumstances and applicable accounting framework.

For a simple worksheet, make the assumptions visible. Record the period covered, currency, source of each balance, valuation basis, and any adjustments applied before entering the totals. This gives a reviewer enough context to understand what the result represents. If the business uses a perpetual inventory system or has complex production costs, a periodic three-input estimate may not capture all details in its records.

Cost of goods sold is also only one part of financial performance. Revenue, operating expenses, taxes, and other items are not included in this calculation. Do not use the number by itself to make decisions about pricing, financing, or business viability. For formal reporting or uncertain accounting treatment, consult a qualified accounting professional who can review the records and relevant requirements.

FAQ about the Cost of Goods Sold Calculator

What does cost of goods sold mean?

Cost of goods sold is the recorded cost associated with goods sold during a period. The exact costs included depend on the business’s inventory accounting method and policies.

Which period should I use?

Use one defined period, such as a month, quarter, or year. Beginning inventory, purchases, and ending inventory must all relate to that same period.

Why subtract ending inventory?

Ending inventory represents goods still on hand at the close of the period. Subtracting its recorded value leaves the amount attributed to inventory that left stock during the period.

Can the result be negative?

Yes, the arithmetic can return a negative figure if ending inventory exceeds beginning inventory plus purchases. Review the amounts and period before interpreting that result.

Does the calculator include every inventory cost?

No. It uses the totals you provide and does not classify costs or make valuation decisions. Confirm what belongs in your inventory figures under your accounting policies, and seek professional review when needed.

Written by

microinsuranceacademy.org Editorial Team

Editorial team

microinsuranceacademy.org publishes practical how-to guides and educational articles with clear steps and useful context.