Harvest
Time Tracking
Sign up free

How to Calculate Cost of Goods Sold

Harvest streamlines time tracking and invoicing for teams and freelancers, addressing the need for accurate labor cost management.

Try Harvest Free

Will this project be profitable?

Estimate your project cost, set the right price, and know exactly how many hours your team can spend before margin disappears.

Total hours across all team members
$
Average rate across all roles on the project
15%
Scope creep is real. Most projects need 10-25% buffer to stay profitable.
Recommended project price $0
Base cost (before buffer) $0
Hours per person per week 0h
Weekly burn rate $0
Max hours before loss 0h

Track project hours with Harvest

Walk through the entire flow below. Start a timer, check your reports, and create a real invoice — all in three clicks.

Go ahead — start tracking!

One click and you're timing. Try it right here: start a timer, add an entry, edit the details. This is exactly how it feels in Harvest.

  • One-click timer from browser, desktop & mobile
  • Works inside Jira, Asana, Trello, GitHub & 50+ tools
  • Duration or start/end — your call
  • Day, week & calendar views to stay on top of it all
  • Friendly reminders so no hour gets left behind
Acme Corp
Website Redesign
Homepage layout revisions
1:24:09
Content Strategy
Blog calendar planning
1:30:00
SEO Audit
Technical audit report
0:45:00
Brand Guidelines
Color system documentation
2:15:00
Logo Concepts
Initial sketches round 1
1:00:00

Understanding the Core: What is Cost of Goods Sold (COGS)?

Cost of Goods Sold (COGS) is a fundamental financial metric that reflects the direct costs involved in producing the goods a business sells within a specific period. It is essential for determining profitability, as it directly impacts the gross profit on financial statements. COGS includes expenses like raw materials, direct labor, and factory overhead directly associated with production. However, it specifically excludes indirect costs such as marketing, administrative salaries, and rent, which are classified as operating expenses.

Accurately calculating COGS is crucial because it appears beneath revenue on the income statement, subtracted to arrive at gross profit. A higher COGS can indicate lower profitability, prompting businesses to refine cost management strategies. Understanding COGS helps businesses set competitive prices, optimize inventory management, and meet tax obligations efficiently.

The COGS Calculation: Formula and Components

To calculate Cost of Goods Sold (COGS), businesses use the formula: Beginning Inventory + Purchases – Ending Inventory = COGS. This formula requires careful tracking and management of inventory. The beginning inventory refers to the value of unsold goods carried over from the previous period, while purchases account for all goods acquired during the current period, including any freight-in costs. Ending Inventory is the value of unsold goods at the end of the period, determined through physical counts or cycle counts.

For example, if a business starts with $100,000 in inventory, purchases an additional $50,000 worth of goods, and ends the period with $30,000 in inventory, the COGS would be $120,000. This calculation is vital for accurate financial reporting and helps businesses understand their true production costs, enabling better pricing and profitability analysis.

Inventory Valuation Methods and Their Impact on COGS

Different inventory valuation methods can significantly affect the reported Cost of Goods Sold (COGS) and, consequently, the gross profit of a business. The four primary methods are FIFO (First-In, First-Out), LIFO (Last-In, First-Out), Weighted-Average Cost, and Specific Identification. Each method offers unique advantages and challenges, particularly during periods of fluctuating costs.

FIFO assumes the oldest inventory is sold first, which often results in lower COGS and higher gross profit during rising prices. In contrast, LIFO assumes the newest inventory is sold first, leading to higher COGS and lower taxable income, but it's not allowed under IFRS, only GAAP. Weighted-Average Cost smooths out cost fluctuations by averaging them over the period. Specific Identification is used for non-interchangeable items, matching exact costs to sales. The choice of method affects financial outcomes significantly, impacting tax liabilities and investment evaluations.

Beyond the Basics: Special Considerations for COGS

Calculating Cost of Goods Sold (COGS) can vary significantly across industries, requiring specific approaches to reflect true production costs. For manufacturers, COGS encompasses raw materials, direct labor, and factory overhead. In contrast, retailers focus on the wholesale cost of inventory purchases. Service-based businesses, while traditionally less concerned with COGS, might use alternatives like "Cost of Revenue" to include direct service delivery costs.

Additionally, inventory shrinkage due to factors like theft or spoilage can increase COGS, affecting profit margins. Businesses must remain diligent in inventory management to mitigate such losses. The choice of inventory valuation method, such as FIFO or LIFO, further influences COGS calculations and financial statements, with each method offering different benefits and regulatory compliance considerations.

Calculate COGS with Harvest

See how Harvest helps manage direct labor costs for accurate COGS calculations with intuitive time tracking.

Screenshot of Harvest time tracking and COGS management tools.

How to Calculate Cost of Goods Sold FAQs

  • The formula for calculating Cost of Goods Sold (COGS) is: Beginning Inventory + Purchases – Ending Inventory = COGS. This straightforward equation helps businesses determine their direct production costs.

  • FIFO (First-In, First-Out) affects COGS by assuming the oldest inventory is sold first, which typically results in lower COGS and higher gross profit during periods of rising costs, providing a more accurate balance sheet valuation.

  • COGS includes direct costs like raw materials, direct labor, factory overhead tied to production, and freight-in costs. It excludes indirect costs such as marketing and administrative expenses.

  • Inventory shrinkage, caused by theft or spoilage, increases COGS, reducing profit margins. Accurate inventory management is crucial to minimize these impacts and maintain profitability.

  • COGS is vital as it determines gross profit, guides pricing strategies, impacts tax calculations, and assesses production efficiency, crucial for overall financial health analysis and budgeting.

  • Yes, Harvest helps manage direct labor costs by tracking billable and non-billable hours with flexible rates, making it ideal for service-oriented businesses.

  • LIFO (Last-In, First-Out) assumes the newest inventory is sold first, leading to higher COGS and lower taxable income during cost increases, unlike FIFO, which can result in different profitability assessments.

  • COGS directly impacts gross profit by being subtracted from total revenue. A higher COGS reduces gross profit, affecting a business's profitability and financial evaluations.