Skip to content
Count.ie

Cost of goods sold Calculator

Keep stock valuation and accounting periods consistent

  1. Use opening inventory from the start of the accounting period.
  2. Add period purchases and inward freight included by this model.
  3. Deduct closing inventory valued on the same policy; keep sales and outward delivery separate.

Check your understanding: €10,000 opening stock plus €30,000 purchases and €1,000 inward freight, less €8,000 closing stock, gives €33,000 cost of goods sold for that period.

An implausible stock valuation can create a misleading cost even when arithmetic is correct. This simple inventory bridge does not determine tax deductibility or replace a stock count.

Page updated Published by Count.ieSources & review

Questions you might ask next

Does this cover all my business operating costs?

No. This model only calculates the cost of goods sold. Other expenses such as outward delivery and general operating overheads are not included in this calculation.

Are all goods purchased in a period treated as sold?

No. The model accounts for the difference between opening and closing inventory to isolate only the costs assigned to goods actually sold during the period.

Does this handle stock write-downs automatically?

No. The result does not resolve stock write-downs, work in progress, or specific accounting-policy differences. You must ensure consistent valuation policies across your opening and closing inventory figures.

Calculation basis, sources and review

COGS = opening inventory + purchases + inward freight − closing inventory.

Publisher
Count.ie, operated by K Imports
Page last updated
— explanatory content and transparency information, not a new rules verification.
Documented source check
No dated source check recorded.
Professional review
No named independent professional review is recorded for this tool.

Any dated method notes below apply only to their stated scope. A formula or user-entered rate is not evidence that statutory rules are current.

Uses the stated formula and the assumptions you enter. No external source review is claimed.

Estimates, not financial, tax, legal or accounting advice. How our dates and checks work. Report a correction.

How do opening stock and closing stock change cost of goods sold?

Calculate COGS from stock, purchases and inward freight. Goods bought during the period are not necessarily all sold during that period. The supported inventory bridge uses opening stock, purchases and closing stock to isolate the cost assigned to sales. Consistent valuations matter, and the result does not automatically resolve stock write-downs, work in progress or accounting-policy differences.

How the calculation works

Cost of goods sold applies one fixed set of rules to the inputs described below, so the same entries always give the same answer. The exact formula is published once, in the Sources, formula and methodology section further down this page.

Opening inventory (€) is entered as 10,000 in the illustration. Keep the unit shown on the field when substituting your own measurement or amount. Purchases (€) is entered as 50,000 in the illustration. Keep the unit shown on the field when substituting your own measurement or amount. Inward freight (€) is entered as 1,000 in the illustration. Keep the unit shown on the field when substituting your own measurement or amount. Closing inventory (€) is entered as 12,000 in the illustration. Keep the unit shown on the field when substituting your own measurement or amount.

Worked example

A fixed illustration uses Opening inventory (€): 10,000; Purchases (€): 50,000; Inward freight (€): 1,000; Closing inventory (€): 12,000. COGS: €49,000.00. All remaining illustrated settings are listed in the example-input disclosure below. These are reproducible sample figures, not saved visitor inputs; this text does not change when you edit the interactive form.

Compare cogs using matching periods and units. A total cost, a recurring payment and a percentage answer different questions. Check omitted costs and the timing of payments before using the result as a spending commitment.

What moves the answer

Each comparison changes one input of the fixed example and re-runs this calculator’s engine. Other assumptions stay unchanged.

  • Raising opening inventory (€) from 10,000 to 11,000, with everything else unchanged, cogs moves from €49,000.00 to €50,000.00.
  • Raising purchases (€) from 50,000 to 55,000, with everything else unchanged, cogs moves from €49,000.00 to €54,000.00.

Frequently asked questions

What happens if I increase opening inventory (€) in this example?

Changing opening inventory (€) from 10,000 to 11,000, with the other example settings unchanged, changes cogs from €49,000.00 to €50,000.00. This isolates one input using the form's actual calculation. Compare changes separately rather than attributing a difference to several assumptions at once.

What assumptions should I check for Cost of goods sold?

Use consistent accounting periods and valuation policies. Outward delivery and operating overheads are not COGS in this simple model. This is a formula-based planning tool, not a feed of live quotations or an independent assessment. Its editable amounts, prices and rates are your assumptions, so check them against the records or specifications relevant to your case.

Quick answer

The Cost of goods sold model returns cogs. Goods bought during the period are not necessarily all sold during that period.

Outputs and units: COGS (euro (€)).

Formula, assumptions and sources

Fixed worked example results

Cost of goods sold example — Opening inventory (€): 10,000; Purchases (€): 50,000; Inward freight (€): 1,000; Closing inventory (€): 12,000. COGS: €49,000.00.

Illustration only, not your entered figures. Use the complete example inputs below, selected options and stated limitations when quoting these results.

Calculated results for the fixed worked example
Result Example value
COGS €49,000.00
Exact inputs used in the worked example
Opening inventory (€)
10,000
Purchases (€)
50,000
Inward freight (€)
1,000
Closing inventory (€)
12,000

Cite this calculation example

Count.ie. Cost of goods sold: fixed worked example. Page updated 2026-10-17. https://count.ie/business/cost-of-goods-sold/#worked-example

This citation describes the fixed example above, not your entered figures. Include the complete assumptions and relevant year when quoting a result. Official sources remain the authority on the underlying rules.

Link to the worked exampleFixed example, assumptions and sources (JSON)AI discovery index

Sources, formula and methodology

Cost of goods sold: formulae, calculation steps and their conditions
StepFormula or calculationWhen it applies
Published calculation methodCOGS = opening inventory + purchases + inward freight − closing inventory.Use the stated input units, supported modes and limitations below.

Assumptions and limits

Use consistent accounting periods and valuation policies. Outward delivery and operating overheads are not COGS in this simple model.

Explanation of the implemented calculator, not independent professional review, enactment verification or a promise of AI citation. See the source links and review scope above.

Need more help?

Read the input reference for cost of goods sold

Input reference and model comparisons

This documentation is assembled from this calculator’s input definitions and model. The comparisons re-run the same model; they are not independent research or a separate accuracy check. How this documentation is produced.

Detailed input reference
Opening inventory (€)
Numeric input; minimum 0; maximum 1000000000000.
Purchases (€)
Numeric input; minimum 0; maximum 1000000000000.
Inward freight (€)
Numeric input; minimum 0; maximum 1000000000000.
Closing inventory (€)
Numeric input; minimum 0; maximum 1000000000000.
Fixed reference scenario and comparisons

This reference scenario uses the inputs listed below, which may differ from the main worked example. Any comparisons change one input while keeping the others unchanged. They are illustrations, not forecasts, eligibility decisions or recommended settings.

Reference inputs

Opening inventory (€)
10000
Purchases (€)
50000
Inward freight (€)
1000
Closing inventory (€)
12000

Reference results

COGS
€49,000.00

Opening inventory (€): 10000 → 12000

COGS
€49,000.00 → €51,000.00

Purchases (€): 50000 → 60000

COGS
€49,000.00 → €59,000.00
All business calculators →