Calculators

Cost of Goods Sold Calculator

Calculate cost of goods sold for a period from beginning inventory, purchases, and ending inventory using the periodic inventory formula.

Loading calculator...

What this Cost of Goods Sold Calculator does

The Cost of Goods Sold Calculator estimates the inventory cost assigned to goods sold during a defined accounting period. It uses the periodic inventory formula: beginning inventory plus purchases during the period, minus ending inventory. The result is expressed in the same currency units as the amounts entered. This gives a practical starting point for reviewing product costs in a business finance and operations workflow.

The calculator uses three inputs: Beginning inventory ($), Purchases during period ($), and Ending inventory ($). Its description states the assumption behind the calculation: inventory is measured for a period using the periodic inventory formula. The displayed result is labeled Cost of Goods Sold and formatted as a dollar amount to two decimal places. Enter values in dollars for that display to match your figures.

Cost of goods sold, often shortened to COGS, represents the cost assigned to products that were sold. It is distinct from sales revenue. For example, a store may earn revenue from selling merchandise while COGS captures the inventory cost associated with those units. Comparing these measures can help a business understand gross profit, which is generally revenue less COGS, before other operating expenses are considered.

How to use the Cost of Goods Sold Calculator

Choose one consistent accounting period, such as a month, quarter, or year. Use inventory values measured at the beginning and end of that same period, and enter purchases made during it. Keep the measurement basis consistent. If inventory values are recorded at cost, use purchase costs on the same basis rather than mixing cost and selling prices.

  1. Enter the inventory value available at the start of the period as beginning inventory.
  2. Enter the cost of inventory purchases made during the period.
  3. Enter the value of inventory remaining at the end of the period.
  4. Review the calculated cost of goods sold and compare it with your records for the same period.

For a worked example, suppose beginning inventory is $10,000, purchases are $5,000, and ending inventory is $4,000. Applying the calculator formula gives $10,000 + $5,000 − $4,000 = $11,000.00. The inputs and result are all in dollars, and the example assumes the figures are complete and consistently valued.

The tool accepts nonnegative amounts up to $100,000,000 for each field and permits cent-level steps. If a source record uses a different currency, convert the figures using the business’s chosen accounting records before entering them. The calculator does not perform currency conversion or verify whether an amount belongs in inventory or purchases.

How the Cost of Goods Sold Calculator formula works

The formula is beginning inventory + purchases − ending inventory. Beginning inventory is the cost of stock on hand at the start. Adding purchases estimates the total inventory cost available during the period. Subtracting ending inventory removes the cost of goods that remain unsold at the close. The remainder is the estimated cost assigned to goods sold during that period.

This relationship can also be written as goods available for sale minus ending inventory. It is a straightforward periodic calculation. The calculator does not count individual transactions, identify particular products, or determine which inventory costing method a business uses. It relies on the three totals supplied by the user.

In the worked example, goods available for sale total $15,000, based on $10,000 of beginning inventory plus $5,000 of purchases. After subtracting $4,000 of ending inventory, the estimated COGS is $11,000. If ending inventory rises while the other inputs stay constant, the calculated COGS falls. If purchases rise while the other values stay constant, the calculated COGS rises.

Use cases for the Cost of Goods Sold Calculator

Small businesses can use the result as a quick check when preparing an internal monthly or quarterly review. A retail operation might compare COGS across periods alongside sales and stock records. A maker or wholesaler might use the calculation to organize a preliminary cost summary before reviewing production or purchasing records.

  • Period review: estimate inventory costs assigned to sales for a selected period.
  • Record reconciliation: compare a simple formula result with figures from bookkeeping or inventory software.
  • Planning discussion: see how changes in purchases or closing inventory affect the calculated total.
  • Learning: understand the relationship between opening stock, purchases, remaining stock, and COGS.

For operational analysis, a business may look at COGS beside revenue, gross profit, stock turnover, or purchasing activity. Those comparisons require accurate and comparable records. The calculator supplies only the COGS estimate from the values entered. It does not evaluate business performance or suggest a target cost level.

Other factors to consider when calculating COGS

Input quality matters. A missed purchase, an incorrect stock count, damaged goods, returns, freight treatment, or a valuation adjustment can affect the numbers used. Businesses may also have specific accounting policies for which costs are included in inventory. This calculator does not decide those policies. Use the definitions and records that apply to your organization, and check that the beginning and ending inventory figures use the same basis.

The simple periodic formula may not match a business’s real-time inventory system or detailed accounting method. Businesses that track inventory continuously may calculate COGS through transaction records and their chosen costing method. If you are preparing financial statements, tax filings, or other formal reports, verify the calculation with the applicable records and a qualified accounting professional. This article and calculator provide arithmetic support, not accounting or tax advice.

Also check whether the period is complete and whether adjustments have been recorded. For example, a physical count might reveal a difference from the book balance. Applying a formula to unadjusted figures will not resolve that difference. Keeping notes on the period, valuation basis, and any adjustments makes later review easier.

Frequently asked questions

What does cost of goods sold include?

COGS generally represents costs assigned to inventory that was sold during a period. What qualifies can depend on the business and its accounting policies. Use the same documented basis for all three calculator inputs, and confirm classifications with your accounting records.

Can cost of goods sold be higher than purchases?

Yes. If beginning inventory is substantial, goods sold during the period can include stock acquired before the period began. The formula combines beginning inventory and current purchases, then subtracts ending inventory.

Why does ending inventory reduce COGS?

Ending inventory represents goods still on hand at the period’s close. Those goods are not included in the amount assigned to goods sold by this periodic formula, so their value is subtracted from the total available.

Can I use this calculator for services?

A service business may have direct costs associated with delivering services, but it may not hold inventory in the same way as a product business. This calculator follows an inventory-based formula. Confirm the appropriate cost measure for your business before using the result.

Does this result replace accounting software or professional review?

No. It performs the stated arithmetic on the amounts entered. It does not validate records, select an inventory valuation method, or prepare formal accounts. Use source records and appropriate professional review when the result is needed for official reporting.

Written by

bizinfolibrary.org Editorial Team

Editorial team

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