What Is COGS? A Modern Guide to Cost of Goods Sold, Calculation Methods, and the Strategic Value of Integrated FP&A
COGS, the cost of goods sold, represents the direct costs a business incurs to produce or purchase the goods it sells. This includes expenses such as raw materials, direct labour, and production-specific overheads. COGS determines gross profit, influences pricing and profitability, and provides the financial baseline for operational planning.
For finance teams, the ability to analyse and forecast COGS accurately is a strategic capability. Organisations are now doubling down on margin optimisation, cost transparency, and agile decision-making.
Understanding, calculating, and forecasting COGS with precision is essential for driving profitable growth, and modern, integrated FP&A platforms are reshaping how organisations approach it.
Explore the power of FP&A in minutes
Watch short demos that match your Financial Planning & Analysis priorities – whenever it fits into your schedule.
Why COGS matters
COGS plays a decisive role in:
-
Gross margin optimisation: Gross profit = revenue – COGS. Controlling COGS is one of the most effective ways to increase profitability without raising prices.
-
Pricing strategy: Accurate cost visibility enables pricing decisions grounded in real economics.
-
Cash and working-capital management: COGS helps organisations align inventory levels, demand forecasts, and purchasing strategies.
-
Operational efficiency: Rising COGS may indicate production inefficiencies, supplier issues, or material-cost volatility.
Types of COGS: Direct and indirect costs
While every organisation structures COGS differently based on its industry, the cost components generally fall into two categories:
1. Direct costs
These costs can be traced directly to each unit produced.
Examples include:
-
Raw materials and components
-
Direct labour
-
Manufacturing supplies
-
Freight-in and packaging
2. Indirect production costs
These are production-related costs that cannot be tied to a single product unit but are necessary to manufacture goods.
Examples include:
-
Factory utilities
-
Depreciation of production equipment
-
Factory rent
-
Indirect labour
Only production-related overhead belongs in COGS. Administrative expenses, marketing, and general overhead are excluded.
Cost of goods sold calculation: core formulas
Organisations generally use one of the following formulas, depending on their costing methodology and inventory approach.
Standard COGS Formula
COGS = Beginning Inventory + Purchases (or Production Costs) − Ending Inventory
Gross Profit Method
Useful for estimates and interim reporting:
COGS = Sales − Gross Profit
Absorption Costing
Incorporates both direct costs and production overhead:
COGS = Direct Materials + Direct Labour + Variable Overhead + Fixed Overhead
Variable Costing
Focuses solely on variable production inputs:
COGS = Direct Materials + Direct Labour + Variable Manufacturing Overhead
Different inventory valuation methods (FIFO, LIFO, Weighted Average) significantly impact the final COGS number.
COGS example (step-by-step calculation)
Below is a simple calculation illustrating how COGS flows through a reporting period:
-
Beginning inventory: £10,000
-
Purchases/production costs: £25,000
-
Ending inventory: £8,000
COGS = £10,000 + £25,000 − £8,000 = £27,000
If revenue for the period was £50,000:
Gross Profit = £50,000 − £27,000 = £23,000
How integrated FP&A elevates COGS management
Traditional spreadsheets and disconnected systems struggle to keep pace with the complexity and real-time nature of modern operations. Today’s finance teams require integrated financial planning and analysis (FP&A) capabilities to manage COGS with greater accuracy and speed.
1. Real-time visibility
Integrated FP&A platforms unify operational, financial, and supply-chain data. This gives finance teams a single version of cost truth, essential for agile forecasting, variance analysis, and cost-to-serve calculations.
2. Predictive COGS forecasting
By combining machine learning, external market data, and historical trends, FP&A platforms can predict material costs, supplier fluctuations, and inventory impacts before they hit the P&L.
3. Scenario and sensitivity analysis
Finance can rapidly model:
-
Changes in raw-material pricing
-
Supply-chain disruptions
-
Shifts between FIFO, LIFO, or Weighted Average
-
Production-volume adjustments
This empowers proactive planning and margin protection.
4. Enhanced cost control
Integrated systems highlight cost anomalies early, enabling corrective action. Teams can pinpoint whether rising COGS originates from labour inefficiencies, supplier increases, or production bottlenecks.
5. Strategic pricing alignment
By feeding accurate COGS data directly into pricing models, organisations can align price points with real cost structures, maintaining competitiveness while protecting margins.
How AI enhances COGS management
AI and machine learning are rapidly advancing how finance teams analyse and forecast the cost of goods sold (COGS). By automating cost attribution, predicting material and production trends, and surfacing real-time anomalies, AI transforms COGS from a backward-looking metric into a forward-focused performance driver.
Key advantages include:
-
Predictive forecasting: ML models anticipate supplier volatility, material-cost changes, and production inefficiencies before they hit margins.
-
Automated cost accuracy: AI streamlines data consolidation across procurement, inventory, and production, reducing manual effort and error.
-
Smarter decision-making: AI identifies cost drivers, highlights margin risks, and powers scenario modelling for pricing, sourcing, and supply-chain decisions.
For organisations seeking more agile margin control, AI-enabled FP&A provides the intelligence layer required to optimise COGS with speed and precision.
Final thoughts
COGS is a strategic performance indicator that shapes pricing, profitability, working-capital efficiency, and operational decision-making. As organisations face rising cost pressures and supply-chain volatility, integrating COGS insight into a unified FP&A ecosystem unlocks stronger forecasting, faster decision-making, and sustainable margin performance.
FAQs
What is COGS in finance?
COGS, or cost of goods sold, represents the direct and production-related costs required to manufacture or purchase the goods a company sells. It is a foundational metric for margin, pricing, and operational performance.
How do you calculate cost of goods sold?
The standard formula is:
COGS = Beginning Inventory + Purchases − Ending Inventory
More advanced approaches may use absorption costing, variable costing, or inventory methods such as FIFO, LIFO, or Weighted Average.
What is included in COGS?
COGS includes direct materials, direct labour, production supplies, freight-in, and manufacturing overhead linked to production. Administrative and selling expenses are not included.
What is an example of COGS?
If a company starts with £10,000 of inventory, incurs £25,000 in production costs, and ends with £8,000 of inventory, its COGS is £27,000.
Does COGS include indirect costs?
Yes, but only indirect costs tied to production, such as factory utilities, equipment depreciation, and manufacturing-related labour. General overhead is excluded.
Why is COGS important for profitability?
COGS directly determines gross profit. Lower COGS improves margins, enhances pricing flexibility, and supports healthier working capital performance.
How does AI improve COGS analysis?
AI automates cost classification, enhances forecasting accuracy, and identifies patterns in material usage, supplier performance, and production efficiency. This enables faster, more informed decisions and stronger margin control.
Can AI help forecast COGS more accurately?
Yes. Machine learning models analyse historical cost trends, supplier data, commodity movements, and production metrics to predict cost changes before they impact the P&L.
How does integrated FP&A support better COGS management?
Integrated FP&A platforms unify financial, operational, and supply-chain data, enabling real-time insight, scenario modelling, and predictive forecasting, all essential for effective COGS optimisation.
Sign up to see more like this
Recommended blogs
April 21, 2026 7 min read
Want to make better business decisions but struggle to access reliable data in Excel spreadsheets?
Read more
April 16, 2026 6 min read
Unit4 FP&A: Analyst Recognition Highlights Momentum, Innovation, and a Clear Path Forward
Read more
March 24, 2026 4 min read
Maximizing Enterprise Performance in an Age of Uncertainty: Insights from the Dresner Advisory EPM Market Study
Read more
Popular blogs
August 26, 2025 4 min read
Break-even analysis guide: benefits, limitations & 5-step process
Read more
January 8, 2025 4 min read
What are 5 key issues facing accounting and financial management today?
Read more
September 11, 2024 5 min read
Top challenges for nonprofit organizations and how to overcome them
Read more
September 5, 2025 4 min read
What is IFRS 16 and how is lease accounting impacting organizations
Read more
September 8, 2025 4 min read
The Benefits of ERP: How Enterprise Resource Planning Transforms Business Efficiency and Growth
Read more
January 8, 2025 4 min read
What are 5 key issues facing accounting and financial management today?
Read more
May 6, 2025 3 min read
Highlights from Unit4's Spring 2025 Solution Release: Simplifying finance and operations with smarter tools
Read more
Don't miss the latest Unit4 blogs
Sign up for industry insights & exclusive content