Net purchases
Net purchases = inventory purchases − purchase returns − purchase allowances − purchase discounts
Calculate cost of goods sold (COGS) for a retail inventory period. Enter beginning inventory, net purchases, any separate inbound freight, and ending inventory.
Cost of goods sold (COGS) is the cost assigned to goods sold during a reporting period. Goods still on hand at the end of the period remain in ending inventory rather than being included in that period's COGS.
This calculator uses a basic retail inventory model for businesses that buy and resell goods. It combines beginning inventory, net purchases, and separately entered inbound freight, then subtracts ending inventory. All amounts are in USD.
Enter inventory at cost, not selling prices or item counts. The calculator uses the values you provide; it does not value individual purchase batches or build manufacturing production costs.


Cost of goods sold
$26,100.00
Use the opening inventory value at cost for the month, quarter, or year you are reviewing.
Deduct applicable purchase returns, allowances, and discounts from the period’s inventory purchases before entering the amount.
Enter freight on goods purchased for resale once. Leave this field blank or enter 0 if freight is already included in net purchases or there is none.
Use the remaining inventory’s cost at the end of the same period, with a valuation method consistent with the beginning balance.
The calculator updates COGS, goods available for sale, and net purchases plus freight as you type. If ending inventory exceeds goods available for sale, review the input amounts and periods.
Net purchases = inventory purchases − purchase returns − purchase allowances − purchase discounts
Purchase cost = net purchases + separately entered inbound freight
Goods available for sale = beginning inventory + purchase cost
COGS = beginning inventory + net purchases + separately entered inbound freight − ending inventory
· Prepare net purchases before entering them. If that total already includes inbound freight, leave the separate freight field blank or enter 0. Use monetary values at cost and a consistent period throughout.
01 · RETAIL INVENTORY

Inbound freight is entered separately.
Cost of goods sold
$26,100.0002 · RETAIL INVENTORY

Net purchases: $12,000 − $500 returns − $300 discounts = $11,200.
Cost of goods sold
$8,000.00· These illustrative examples use one reporting period and inventory values at cost.
Check acquisition costs against your supplier records. Add freight separately only when it is not already included in net purchases.
In this retail model, exclude general administration, marketing, and selling expenses from inventory purchases. Manufacturing cost allocation requires a different calculation.
Reconcile ending inventory with stock records and physical counts. Check missing, damaged, or obsolete items before using the inventory value.
Keep purchases and inventory balances within the same period. Value both inventory balances consistently at cost, rather than using retail prices or quantities.
Reconcile returns, allowances, and discounts before entering net purchases. Check amounts against your records instead of treating the calculator as an automatic inventory audit.
Use inventory values at cost, not retail selling prices or item counts. Apply a consistent valuation method to the beginning and ending balances for the same reporting period.
Inbound freight on merchandise bought for resale can form part of inventory cost. Enter it separately only if it is not already in net purchases. Shipping goods to customers is a selling or distribution expense under the retail model used here.
No. It calculates COGS from the inventory and purchase totals you enter. Prepare inventory values using the method applicable to your records before entering them; this tool does not select or compare costing methods.
This version is designed for goods purchased for resale. It does not calculate raw materials used, production labor, manufacturing overhead, work in progress, or service delivery costs. Those require a costing model suited to the business.
Enter 0 for a required amount that is genuinely zero. A new retailer can have zero beginning inventory; a period with no purchases can still have COGS from existing stock. The optional freight field can be blank or zero. COGS is zero if ending inventory equals goods available for sale.
The entered ending balance exceeds beginning inventory plus net purchases and any separate freight. This basic model cannot return negative COGS. Check dates, cost valuations, missing purchases, and any inventory adjustments outside the model before using the result.