calculator.onl
Categories50

Inventory and cost of goods sold reconciliation

Reconcile beginning inventory, net purchases, adjustments and ending inventory with COGS and gross profit.

A worked example

With goods available worth 4,000, raise closing stock from 1,000 to 2,000. The warehouse value rises, the sold-goods load shrinks, and cost of goods sold falls from 3,000 to 2,000.

B + P + J$16,155.00COGS$7,260.00Gross profit$4,080.00Gross margin35.98%
USD
Value of inventory on hand at the start of the period. Opening inventory: 0…1000000000000 money

USD
Purchases entering inventory during the period after applicable reductions. Net purchases: 0…1000000000000 money

USD
Signed adjustment to period inventory cost before closing stock is deducted. Cost adjustment: -1000000000000…1000000000000 money

USD
Value left in inventory at period end. Closing inventory: 0…1000000000000 money

USD
Sales for the same period against which cost of goods sold is compared. Net sales: 0…1000000000000 money

Updates as you type

Use a dot or comma for decimals. No thousands separators. Currency selection changes the display unit, not an exchange rate.

YOUR RESULT

B + P + J

$16,155.00

Calculated from your inputs

COGS$7,260.00
Gross profit$4,080.00
Gross margin35.98%
E − B$5,745.00
The numbers, at a glance

Calculations run in your browser.
UNDERSTAND THE RESULT

A little context. A clearer answer.

↑ Back to calculator

When this calculator is useful

Add opening inventory, net purchases and signed adjustments to obtain available cost. Subtract closing inventory for cost of goods sold. Subtract COGS from net sales for gross profit; divide by net sales for margin. Negative available cost or closing stock above available cost is rejected for this simple model. For a related calculation, try Production batch cost with setup and rejects.

What to enter

InputWhat it meansExample value
Opening inventoryValue of inventory on hand at the start of the period. Opening inventory: 0…1000000000000 money3,150 USD
Net purchasesPurchases entering inventory during the period after applicable reductions. Net purchases: 0…1000000000000 money13,005 USD
Cost adjustmentSigned adjustment to period inventory cost before closing stock is deducted. Cost adjustment: -1000000000000…1000000000000 money0 USD
Closing inventoryValue left in inventory at period end. Closing inventory: 0…1000000000000 money8,895 USD
Net salesSales for the same period against which cost of goods sold is compared. Net sales: 0…1000000000000 money11,340 USD

How the calculation works

  1. Change the inputs to explore your own scenario. Opening inventory: 0…1000000000000 money; Net purchases: 0…1000000000000 money; Cost adjustment: -1000000000000…1000000000000 money; Closing inventory: 0…1000000000000 money; Net sales: 0…1000000000000 money.
  2. G=B+P+J; COGS=G−E; GP=S−COGS; margin=100×GP/S
  3. Periodic merchandise inventory in one currency and accounting period. Net purchases already include appropriate freight and purchase returns/discounts. Enter signed cost adjustments separately without double counting. Ending inventory is an independently valued book amount. No FIFO/LIFO valuation, manufacturing allocation, cash flow or tax filing is inferred.
The formulaG=B+P+J; COGS=G−E; GP=S−COGS; margin=100×GP/S

A worked example

OpenStax example: 3150 opening +13005 purchases −8895 ending =7260 COGS. Net sales11340 give gross profit4080 and gross margin≈35.97883598%. The entered ending inventory is supplied, not revalued by this tool.

Example you can load

What to enter
Result for this example · B + P + J$16,155.00
Result for this example · COGS$7,260.00

This is a fixed example; changing the form above does not change these numbers.

Assumptions & limits

Periodic merchandise inventory in one currency and accounting period. Net purchases already include appropriate freight and purchase returns/discounts. Enter signed cost adjustments separately without double counting. Ending inventory is an independently valued book amount. No FIFO/LIFO valuation, manufacturing allocation, cash flow or tax filing is inferred.

Frequently asked questions

Does the tool choose an inventory valuation method?

No. Supply a consistently valued closing inventory amount from your records.

Where do purchase returns and freight go?

Use their appropriate net effect in net purchases or the separate adjustment, once only.

What happens with zero sales?

Gross profit remains sales minus cost; gross margin is unavailable because its denominator is zero.