
Accounting Cost of Goods Sold Calculator
Calculate cost of goods sold from beginning inventory, purchases, purchase adjustments, freight-in, and ending inventory.
Overview
Use this Accounting Cost of Goods Sold Calculator to estimate the inventory cost of products sold in a period. Enter beginning inventory, inventory purchases, purchase returns and discounts, freight-in, and ending inventory to calculate COGS.
How it works
The calculator first finds net purchases by subtracting purchase returns and discounts from purchases, then adding freight-in and similar acquisition costs. It adds net purchases to beginning inventory to determine goods available for sale. Finally, it subtracts ending inventory. The resulting amount is the cost of inventory assigned to goods sold during the period: beginning inventory plus net purchases minus ending inventory.
How to use this calculator
- 1Enter the inventory value recorded at the start of the period.
- 2Add the total cost of inventory purchases made during the period.
- 3Subtract purchase returns, allowances, and discounts.
- 4Include freight-in, duties, or similar costs of acquiring inventory.
- 5Enter the inventory value remaining at the end of the period.
- 6Review the estimated cost of goods sold and supporting totals.
Example Calculation
Beginning inventory
$25,000
Inventory purchases
$80,000
Purchase returns and discounts
$3,000
Freight-in and import costs
$2,500
Ending inventory
$30,000
Cost of goods sold
$74,500.00
Net purchases are $79,500 and goods available for sale are $104,500. After subtracting $30,000 of ending inventory, estimated cost of goods sold is $74,500.
Frequently asked questions
What is the formula for cost of goods sold?
The standard periodic inventory formula is beginning inventory plus net purchases minus ending inventory. Net purchases generally include freight-in and subtract purchase returns and discounts.
What is included in net purchases?
Net purchases start with inventory purchases, subtract purchase returns, allowances, and discounts, and add freight-in or other direct costs of bringing inventory to its location.
Is freight-in included in cost of goods sold?
Freight-in is usually treated as part of inventory cost. It first increases goods available for sale and is ultimately included in COGS for inventory sold.
Why is ending inventory subtracted?
Ending inventory represents goods still on hand at the end of the period. Because those goods have not been sold, their cost is not included in current-period COGS.
Does COGS include salaries, rent, and marketing?
Usually not. General operating expenses such as office salaries, rent, advertising, and administrative costs are normally reported separately from COGS, although classifications can depend on the business and accounting policy.
What does a higher COGS mean?
A higher COGS means more inventory cost was assigned to sales during the period. Its effect on gross profit depends on sales revenue and should be considered alongside inventory valuation and pricing.
Explore Related Calculators
Assumptions and warnings
Assumptions
- All amounts relate to the same accounting period and use the same currency.
- Beginning and ending inventory values are measured using a consistent inventory valuation method.
- Purchase returns and discounts reduce inventory purchase costs.
- Freight-in and import costs entered are capitalized as inventory costs.
- The result is an estimate and does not include operating expenses, selling costs, or income taxes.
Warnings
- This calculator provides an accounting estimate only and is not tax, financial, or professional accounting advice.
- Inventory valuation, capitalization rules, and reporting requirements can vary by accounting framework and jurisdiction.