Calculators

Cost of Goods Sold Calculator

Calculate the cost of goods sold for a period using beginning inventory, purchases, and ending inventory. Enter all amounts in the same currency and apply the standard inventory equation.

Loading calculator...

What this Cost of Goods Sold Calculator does

The Cost of Goods Sold Calculator estimates the value of inventory costs recognized as sold during a chosen accounting period. It uses three figures: the inventory value at the start of the period, purchases made for inventory during that period, and the inventory value remaining at the end. Enter each amount in the same currency and the calculator returns the Cost of Goods Sold for the period.

Cost of goods sold, often shortened to COGS, is used in business finance and operations to understand the direct cost associated with products sold. For a retailer, that may include the cost of merchandise sold to customers. For a manufacturer, inventory accounting can involve materials and production costs, and the appropriate amounts depend on the business’s accounting method and records. This calculator applies the basic inventory equation. It does not determine which costs belong in inventory or verify the figures you enter.

The calculation is useful for a period-based estimate and for checking arithmetic in a worksheet. It should be read alongside the business’s accounting policies and source records. The result is not a complete financial statement or a substitute for reviewing unusual inventory movements.

How to use the Cost of Goods Sold Calculator

Choose one accounting period, such as a month, quarter, or year, and gather its inventory figures. Use a consistent valuation basis for all three amounts. For example, do not enter beginning and ending inventory at cost while entering purchases at retail selling price.

  • Beginning inventory: enter the value of inventory on hand at the start of the period. This generally corresponds to the prior period’s ending inventory.
  • Purchases: enter the qualifying inventory purchases recorded during the period, using the same currency and valuation basis.
  • Ending inventory: enter the value of inventory on hand at the period’s close.

Then select calculate to see the Cost of Goods Sold result. The fields accept nonnegative amounts up to 100,000,000, with a precision step of 0.01. If your books use another currency, the arithmetic still works as long as every amount is entered in that same currency. The output displays two decimal places.

For example, suppose a small office-supply retailer begins the month with 10,000 currency units of inventory, records 25,000 in purchases, and counts 8,000 in ending inventory. The calculation is 10,000 + 25,000 − 8,000 = 27,000 currency units of cost of goods sold. The example assumes the amounts are complete and consistently valued.

How the Cost of Goods Sold formula works

The calculator uses this formula: beginning inventory + purchases − ending inventory. Beginning inventory represents goods available at the start. Adding purchases gives the goods available for sale during the period. Subtracting the goods still on hand leaves the portion assigned to goods sold.

In the example above, goods available for sale total 35,000. After accounting for 8,000 that remain in stock, the estimated cost assigned to sales is 27,000. This is an inventory flow calculation. It does not calculate revenue, gross profit, taxes, or cash paid to suppliers.

The formula assumes the inputs are prepared correctly under the business’s chosen accounting method. It also assumes the opening inventory, period purchases, and closing inventory cover the same period and inventory scope. If a business tracks multiple locations or product categories separately, it may be useful to calculate each group consistently and then combine the results.

Use cases for the Cost of Goods Sold calculation

Business finance and operations teams can use the result as one part of routine reporting. It may help with:

  • Checking the arithmetic in a monthly or quarterly inventory worksheet.
  • Preparing a preliminary view of direct product costs for internal review.
  • Comparing periods after confirming that valuation methods and inventory coverage stayed consistent.
  • Discussing inventory movement with purchasing or warehouse teams.
  • Spotting inputs that deserve a second look, such as an ending inventory figure that seems unusually large or small.

Comparisons are most useful when the underlying processes are comparable. A change in sales mix, purchasing timing, inventory counts, write-offs, or valuation methods can affect the figures. The calculator cannot explain why COGS changed, so use the result as a prompt for reconciliation rather than a diagnosis on its own.

Other factors to consider when calculating cost of goods sold

Accurate output depends on reliable records. A physical count, inventory system, and accounting ledger may not agree until timing differences, damaged goods, returns, or recording errors have been reviewed. The ending inventory figure is particularly important because it is subtracted from goods available for sale.

Businesses may use different inventory costing methods and policies for determining which costs are included. Those choices affect inventory values and therefore the result. Keep a consistent basis across the figures, document adjustments, and follow the organization’s accounting process. For questions about financial reporting or tax treatment, consult a qualified accounting professional familiar with the relevant rules and records.

This tool uses only the three values shown and performs their arithmetic. It does not account separately for freight, discounts, returns, production overhead, shrinkage, or other adjustments. Include amounts only as appropriate under the business’s own accounting method. If the inputs produce a negative result, review the period, inventory scope, and values entered before relying on it.

Frequently asked questions

What does cost of goods sold mean?

Cost of goods sold is the inventory cost assigned to products sold during a period. It is distinct from sales revenue and from broader operating expenses. The exact costs included depend on the business and its accounting policies.

Which period should I use?

Use a defined period that matches your records, such as a month, quarter, or year. The beginning and ending inventory values should bracket that same period, and purchases should belong to it as well.

Should I enter retail prices or inventory costs?

Use inventory values on a consistent cost basis, not customer selling prices. If you are unsure how your records value inventory, check the accounting method used by your business before interpreting the result.

Why might the result differ from my accounting report?

Reports may include adjustments or cost categories that are not represented in the three calculator inputs. Differences can also come from timing, counts, returns, write-offs, data entry, or the valuation method. Reconcile the calculator inputs against your underlying records.

Can I use this result for tax filing?

The calculator provides a basic arithmetic estimate and does not assess tax rules or reporting requirements. Use the figures and procedures applicable to your business, and seek professional accounting guidance when needed.

Written by

iabdnet.org Editorial Team

Editorial team

Independent editorial coverage of business learning.