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 accounting period.

Loading calculator...

What the Cost of Goods Sold Calculator does

The Cost of Goods Sold Calculator estimates the cost of inventory a business sold or used during an accounting period. It applies the basic inventory equation to three figures: beginning inventory, purchases during the period, and ending inventory. The result is the cost of goods sold (COGS), expressed in the same currency units as the amounts entered.

For a small retailer, for example, COGS represents the recorded cost assigned to products that left inventory through sales during the period. A maker or distributor may use a related inventory calculation, but the exact costs included depend on the business’s accounting method and records. This calculator provides a straightforward worksheet estimate. It does not determine which costs qualify, select an inventory valuation method, or replace bookkeeping or tax review.

The calculator uses these inputs:

  • Beginning inventory, the inventory value at the start of the period.
  • Purchases during period, the value of inventory acquired during the period under the assumptions used in your records.
  • Ending inventory, the inventory value remaining at the period’s end.

Enter each value in the same currency and use consistent inventory valuation records. The result is a cost amount, not a selling price, gross profit, margin, or cash flow measure.

How to use the Cost of Goods Sold Calculator

Choose one accounting period, such as a month, quarter, or year, and gather the inventory figures for that period. The beginning inventory should correspond to the opening date. Ending inventory should correspond to the closing date and should be based on the method and records your business uses.

  1. Enter the beginning inventory value.
  2. Enter purchases made during the period, using the same currency and consistent treatment of costs.
  3. Enter the ending inventory value.
  4. Read the displayed Cost of Goods Sold result and compare it with your underlying records.

For example, suppose a shop starts with inventory valued at $10,000, records $5,000 in purchases, and has $4,000 of inventory at the end of the month. The calculation is $10,000 + $5,000 − $4,000, which produces $11,000 in COGS. These figures are illustrative only. Use your own verified amounts for a meaningful estimate.

Make sure the ending inventory amount is not accidentally entered as a negative number. The calculator accepts nonnegative values, and the arithmetic can produce a negative result if ending inventory exceeds beginning inventory plus purchases. That result signals that the entered amounts should be reviewed, since ordinary inventory records generally require investigation when the basic equation yields a negative cost.

How the Cost of Goods Sold Calculator formula works

The formula is beginning inventory + purchases − ending inventory. It starts with goods available at the beginning of the period, adds inventory purchased during that period, then subtracts the value still on hand at the end. The remaining amount estimates the inventory cost that was consumed or sold during the period.

In symbols, COGS = BI + P − EI, where BI is beginning inventory, P is purchases, and EI is ending inventory. The equation only works as intended when the amounts refer to the same period, currency, and consistent accounting basis. If inventory is measured differently at the start and end, the result may not be comparable.

The calculation is deliberately limited to the three supplied values. It does not apply adjustments for purchase returns, discounts, freight, production labor, overhead, spoilage, or other items. Whether any of these belong in inventory cost depends on the business, accounting policy, and applicable reporting requirements. If your books track such items separately, consult your accounting process before deciding how they should affect the input figures.

The output is formatted to two decimal places. That presentation does not imply that source records are precise to a fraction of a currency unit. You can still enter rounded figures, but the result will only be as reliable as those inputs and the assumptions behind them.

Use cases for a Cost of Goods Sold Calculator

A simple COGS estimate can help a business owner organize routine financial information. It can also help staff check whether inventory figures reconcile before preparing an internal report. The estimate is most useful when the input values are drawn from the same records and period.

  • Monthly operations review: calculate a period’s inventory cost for comparison with sales and other operating figures.
  • Bookkeeping checks: spot a surprising result that may indicate a missing purchase, an inventory count issue, or a transcription error.
  • Budget preparation: use past recorded COGS as one reference when planning inventory needs, while accounting for expected changes in volume and cost.
  • Management reporting: prepare a preliminary figure to discuss with a bookkeeper or finance team.

For example, a retailer reviewing a quarter may compare its COGS estimate with sales revenue to understand how inventory costs relate to the period’s activity. This calculator does not calculate gross profit or gross margin by itself. Those measures require sales revenue and, for margin, a defined denominator. Avoid treating COGS alone as a measure of business performance.

Businesses with manufacturing, multiple inventory categories, frequent returns, or complex cost allocation may need a more detailed accounting process. A single three-input estimate can still serve as a high-level check, provided users understand what the figures include.

Other factors to consider when calculating COGS

Inventory valuation matters. The values for beginning inventory, purchases, and ending inventory should follow a consistent method in the business records. Different valuation methods or changes in method can affect reported costs. The calculator does not choose or validate an accounting method.

Count and cutoff errors matter. Inventory physically on hand near period end can be miscounted, and purchases may be recorded in the wrong period. Keep supporting documentation, use a consistent cutoff, and investigate differences between physical counts and the ledger.

Business models differ. A reseller may have a relatively direct merchandise inventory calculation. A manufacturer may account for raw materials, work in process, and finished goods, along with other production costs. This calculator does not model those categories separately. Match the inputs to the calculation used in your accounting system.

For decisions involving financial statements, tax filings, or accounting policy, have a qualified accounting professional review the figures and treatment. This calculator is an arithmetic aid. It is not financial, tax, or accounting advice.

Cost of Goods Sold Calculator FAQ

What does cost of goods sold mean?

COGS is the recorded cost assigned to inventory sold or otherwise used in generating revenue during a period, as defined by the business’s accounting approach. The specific costs included can vary with the type of business and its policies.

Can this calculator produce a negative result?

Yes. If ending inventory is greater than beginning inventory plus purchases, the formula returns a negative amount. Review the period, units, inventory counts, and data entry. A negative result may indicate inconsistent or incomplete inputs.

Should I include shipping or labor in purchases?

The calculator does not decide which costs belong in inventory. Treatment can depend on the facts and accounting method. Follow your established bookkeeping policy and ask an accounting professional when you are unsure.

Does COGS equal total business expenses?

No. COGS concerns inventory costs assigned to goods sold or used. Operating expenses such as office costs or marketing are generally tracked separately, depending on the business’s accounting presentation.

How often should I calculate COGS?

Use the reporting period appropriate to your bookkeeping and management needs, such as monthly or quarterly. Keep beginning and ending inventory dates aligned with that period and reconcile the figures to your records.

Written by

lercpa.org Editorial Team

Editorial team

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