Select Page
Home 5 Inventory Management 5 How to Calculate Cost of Goods Sold | Finale Inventory

Blog

Originally published on November 24, 2021 Last updated on March 6, 2026

How to Calculate Cost of Goods Sold | Finale Inventory

Your cost of goods sold is an important accounting metric that can indicate your company’s financial health. You’re also required to report your COGS to the IRS, making calculating your COGS an essential part of doing business. Let’s go over the formula for COGS and talk about why this figure is so important.  What Is […]

Your cost of goods sold is an important accounting metric that can indicate your company’s financial health. You’re also required to report your COGS to the IRS, making calculating your COGS an essential part of doing business. Let’s go over the formula for COGS and talk about why this figure is so important. 

What Is Cost of Goods Sold (COGS)?

Cost of goods sold, also called cost of sales, is a figure that includes all the direct costs associated with acquiring and managing inventory. COGS can incorporate the cost of raw materials, shipping and the labor involved in producing and storing the products. However, it does not include indirect costs like distribution or marketing. 

COGS is a critical value used in accounting, as it is subtracted from revenue to calculate gross profit and gross margins. In this way, cost of goods sold can be a significant indicator of financial health because businesses must curb their COGS as much as possible to maintain solid profit margins. The accounting practices used to calculate COGS can value it in a few different ways. 

The costs that can contribute to COGS include:

  • Salaries and wages of staff involved in purchasing, storing and managing inventory.
  • Taxes and other fees incurred when making inventory purchases.
  • Storage rental fees or warehouse ownership costs.
  • Cost of raw materials to produce merchandise.
  • Cost to purchase merchandise.
  • Production costs. 
  • Shipping costs.

COGS Formula

You’ll need to know how to use the COGS formula for accounting purposes and to understand your company’s financial position. Before calculating your cost of goods sold, you’ll need to identify information such as:

  • Beginning inventory: This is the value of your stock at the start of the fiscal period.
  • Cost of purchases: This includes the value of any inventory parts or raw materials purchased during the fiscal period.
  • Cost of labor: This figure should include the wages of any employee directly involved in producing products or managing stored inventory. Do not include the salaries of sales personnel, marketers, finance team members or administrators.
  • Ending inventory: This is the value of your stock at the end of the fiscal period.
  • Valuation method: The accounting method you use determines how you value your beginning and ending inventory. When businesses keep a stock of similar items purchased at different price points, they use the average costing method to determine the cost of goods sold based on the current average cost of inventory. Finale Inventory can make your accounting and book-keeping simpler by helping your business calculate the average cost of goods.

Once you’ve identified values for each of these items, you can plug them into the cost of goods sold formula. The COGS formula is beginning inventory plus the cost of purchases and direct labor during the fiscal period minus ending inventory.

Businesses typically calculate their COGS for the fiscal year for their annual accounting purposes. To apply the COGS formula in this way, you would start with the value of your beginning inventory in January or whenever you begin your company’s fiscal year. Then, you’d add in all inventory-related purchases and inventory-related labor costs during the year. With these figures totaled, you can then subtract the value of your inventory at the end of December or whenever you end your fiscal year to arrive at your COGS for the previous fiscal year.

You can also plug this figure into the COGS percentage formula to determine your COGS rate, or your cost of goods sold expressed as a percentage of your total sales. In this calculation, you’ll take your COGS and divide it by your sales. 

Finale Inventory also makes arriving at accounting figures such as COGS simpler with the general ledger transactions, and reports feature within our inventory accounting module. You can also integrate Finale Inventory with QuickBooks Desktop or QuickBooks Online for even more inventory accounting using your finance team’s existing software solution.

Cost of Goods Sold Example

Let’s walk through an example using the cost of goods sold formula. Let’s say your inventory at the start of the year is valued at $20,000. You purchase $10,000 worth of new stock and supplies throughout the year and pay $30,000 in inventory-related labor costs. At the end of the year, your inventory is valued at $15,000.

Plugging these values into the COGS formula, you would first add $20,000 to $10,000 plus $30,000 to get $60,000. Then, you would subtract $15,000 to arrive at $45,000. Or, $20,000 + ($10,000 + $30,000) – $15,000 = $60,000.

If you wanted to learn your COGS rate, you would need to also look at your total revenue for the year. Let’s say it was $90,000. To find your COGS rate, you would take $45,000 divided by $90,000 to get a COGS rate of 0.5 or 50%. 

Why Is COGS Important?

COGS is one of the many figures you’ll need to know when it comes to inventory accounting. With all the different numbers and calculations involved in inventory accounting, what makes cost of goods sold so important? Besides COGS being a central variable in many other inventory accounting formulas, knowing and understanding your COGS is critical for reasons such as:

1. Tax Reporting

If your business makes and sells goods or buys and resells merchandise, the IRS requires you to include your COGS on your financial statements and tax returns. Your COGS is considered a business expense, not an asset, so it can be written off from your company’s total taxable income. In other words, your cost of goods sold decreases the total amount of taxes you’ll owe. 

To deduct your COGS from your income, you’ll need to have detailed documentation of all your business costs. This documentation entails keeping receipts and accurately recording your expenses in your inventory management and accounting software. Tax benefits are the only good reason to have a high COGS. Therefore, it’s crucial to include all the actual expenses involved in your inventory costs without trying to add to your COGS unnecessarily. 

2. Managing Profits

Understanding your COGS is essential from a business owner’s perspective because your COGS directly influence profits. Your COGS subtracted from your sales revenue is equivalent to your gross profits, and a high COGS means lower profits and a smaller profit margin.

You’ll want to monitor your COGS and be aware when the value gets higher so you can look for ways to cut costs and achieve higher profits. Understanding your COGS and the direct costs involved in your inventory acquisitions can help you make better financial decisions. Demonstrating your earnings in relation to your expenses can also help you obtain business loans.

3. Pricing Goods for Sale

Finally, you must have a firm handle on your COGS to determine how to price your products for resale. You must price your products in such a way to cover the cost of goods sold, or you risk falling into financial hardships. However, pricing products too high can cause you to lose customers and sales. To avoid pricing their products too high or too low, businesses often use their COGS in conjunction with a set markup.

For example, a markup of 25% would ensure that all goods are priced to achieve a healthy profit. If a product costs $20 to purchase and you add a 25% markup, you would resell it for $25 and ensure a profit. You can set up a similar pricing formula in Finale Inventory to price your goods based on their average costs.

Finale Inventory Can Simplify Your Inventory Responsibilities

Finale Inventory is a comprehensive inventory management solution that can track your inventory expenses and sales in one centralized platform. Complete with our inventory accounting and reporting suite and our sophisticated landed costs feature, Finale Inventory has everything you need to streamline your inventory accounting process and make finding your COGS feel effortless. Plus, with real-time inventory tracking, automated reorder points and a range of other features, our software can simplify your inventory responsibilities across your business.

Book a demo today!

“The core of maturity, that I see, is starting with a unified view of inventory. I’ve got to be able to accurately represent what do I have, make sure that I know where it’s located so I can get it to my customers quickly.”

— Troy Graham, Descartes

What is the first thing I should fix if I want to scale operations?

Start with a unified view of inventory. The core of maturity starts with being able to accurately represent what you do have and make sure that you know where it’s located to get it to customers quickly. Without a unified view across your warehouses, 3PLs, and vendors, you cannot make the best decisions because you don’t have the best information at hand.

With Inventory Visibility, Businesses Can Make Smarter Allocation Decisions

Once inventory is centralized, businesses can move from reactive updates to intentional allocation. They can decide how much inventory to expose to each channel, when to use buffers, which marketplaces need extra protection, and how seasonality or campaign performance influence availability.

Once I know what inventory I have, how should I decide where to make it available?

Inventory allocation should reflect where orders are coming from, where marketing is working, and which channels carry the most risk. Once you know what you have and where it is located, you can think more strategically using centralized inventory to make prioritization happen automatically. One fertilizer company lost a little over 5,000 orders in one weekend because someone manually uploaded the wrong available inventory to Amazon.

Better Inventory Data Improves Planning, Purchasing, and Growth Bets

Better visibility turns inventory data into a planning tool. With insight into sales velocity, inventory levels, vendors, and channel performance, businesses can make more informed replenishment decisions, avoid overbuying, and test new product lines or vendor-supplied inventory without taking on unnecessary risk.

“You have to have unified inventory to know how to price your products just at that basic level. I can’t price my products if I don’t know the true cost to get it.”

— Mike Bernico, Flxpoint

How does better inventory data help me make smarter buying decisions?

It lets you measure whether your plan is working before you commit more capital. A key question becomes: “Did my plan work? Am I overleveraged in one place or another?” Centralized systems can also help businesses test new product lines or vendor relationships by looking at sales velocity by channel, allowing them to take risks in a calculated and measured way.

Intelligent Order Routing Turns Inventory Complexity Into Automation

Once inventory and supplier data are reliable, businesses can automate fulfillment decisions. Orders can be routed based on cost, speed, margin, location, warehouse priority, vendor fallback, split-shipment rules, or customer expectations. This helps hybrid fulfillment scale because every order does not need a manual review.

How do I decide the best way to fulfill each order?

There is no single answer, which is why order routing needs to account for the context of each order. Intelligent order routing is not just sending an order to someone who has stock; it is taking each and every order and treating it like its own unique use case. Depending on the order, the business may prioritize speed, margin, an internal warehouse, vendor fallback, or preventing split shipments.

Supplier Inventory Sync Extends Inventory Beyond the Four Walls

For hybrid fulfillment to work, supplier inventory needs to become part of the operating model. Supplier sync does not always require advanced technology; it can happen through automated files, FTP, email, APIs, EDI, or ecommerce storefront integrations. The key is replacing manual updates with automated, reliable supplier data.

Can supplier inventory really be treated like part of my own inventory?

Yes, but the goal is not necessarily to force every supplier into a complex integration. Real-time supplier sync can be defined as any way to get an automated update from a supplier, such as Google Sheets, email, FTP, API, EDI, or ecommerce storefront connections. The key is that accurate supplier stock is foundational. If you don’t have an accurate view of what is in stock with your suppliers, you cannot tell your sales channel accurately what’s available.

Exception-Based Workflows Keep Humans Focused Where They Matter

Automation does not remove people from the process. Mature operations let technology handle the routine majority while humans focus on exceptions, such as high-value orders, fraud risk, compliance requirements, restricted products, export rules, or unusual fulfillment scenarios.

If my business has special cases, can automation still work?

Yes. The point is not to automate every possible decision; it is to automate the routine work and surface the exceptions. Businesses should not have to look at every single order. Instead, technology can highlight high-value orders, risky locations, or compliance requirements. The goal is to take care of the 80% of workflows that are obvious while still allowing human review when specific exceptions arise.

The Right Inventory Technology Should Fit the Business, Not Overwhelm It

Software decisions should be based on business fit, not popularity, feature volume, or broad “all-in-one” promises. Growing ecommerce businesses should identify their highest-impact bottleneck, prioritize what matters now, and choose technology that is right-sized but flexible enough to support future phases of growth.

How should I choose software without overbuying or picking the wrong system?

Start with your priorities, not the biggest feature list. Avoid an all-in-one system that claims to “do everything under the sun” and look for a “best of breed approach” with systems that can scale as you add channels or vendors. The practical advice is to stack rank what matters now, make sure the system can support future phases, and choose technology that fits your business rather than overwhelming it.

How to Scale Ecommerce Operations Beyond Spreadsheets

For many growing ecommerce businesses, Finale and Flxpoint work together as a practical answer to these challenges. Finale helps centralize and manage internal inventory, purchasing, warehouse operations, and stock visibility, while Flxpoint helps connect vendor inventory, automate supplier sync, and route orders across hybrid fulfillment networks. Together, they give businesses a best-of-breed way to improve inventory accuracy, reduce spreadsheet work, and scale fulfillment without forcing every process into a one-size-fits-all system.

Ecommerce Fulfillment Operations FAQ

What Is Ecommerce Fulfillment Operations?

Ecommerce fulfillment operations are the processes that move an online order from purchase to delivery. This includes managing inventory, syncing product availability across channels, routing orders to the right warehouse, 3PL, supplier, or vendor, and making sure the customer receives the right product on time. As discussed in the webinar, fulfillment is no longer limited to “what’s in my warehouse these days”; growing businesses may rely on internal warehouses, 3PLs, marketplace fulfillment services, and supplier inventory at the same time.

What Are Ecommerce Fulfillment Operation Examples?

Examples of ecommerce fulfillment operations include updating inventory across Shopify, Amazon, Walmart, and other sales channels; allocating inventory to specific marketplaces; sending orders to an internal warehouse, 3PL, or vendor; syncing supplier inventory through files, APIs, EDI, email, or FTP; replenishing warehouse stock based on sales velocity; and flagging exceptions such as high-value orders, compliance requirements, or restricted products. In the webinar, the speakers also discussed hybrid fulfillment examples where a business may fulfill some products from its own warehouse and use vendors as a fallback or extension of available inventory.

How Can I Track My Inventory at an Ecommerce Fulfillment Center?

The best way to track inventory at an ecommerce fulfillment center is to create a unified inventory view that shows what is available, where it is located, and how that inventory connects to each sales channel. That means tracking inventory across internal warehouses, fulfillment centers, 3PLs, marketplace fulfillment programs, and supplier locations instead of relying on disconnected spreadsheets. The webinar emphasized that businesses need to “accurately represent” what they have and know where it is located so they can get products to customers quickly.

How Can I Connect My Inventory to My Supplier?

You can connect supplier inventory through several methods, depending on what the supplier supports. The webinar discussed low-tech and advanced options, including automated Excel or CSV files, Google Sheets, email updates, FTP servers, APIs, EDI, and direct connections to ecommerce storefronts such as Shopify, BigCommerce, or Magento. The key is to ask suppliers how they share inventory today, then use a system that can automate that data flow instead of manually copying supplier inventory into spreadsheets.

What Is Ecommerce Order Routing?

Ecommerce order routing is the process of deciding where an order is fulfilled from after a customer buys. In a simple operation, every order may go to one warehouse. In a more complex or hybrid fulfillment model, the best fulfillment source may depend on inventory availability, shipping speed, cost, margin, customer location, warehouse priority, vendor fallback rules, or whether the order should be split. The webinar described intelligent order routing as treating each order like its own use case, so businesses can automate the best fulfillment decision without manually reviewing every order.

Keep Up With the Latest From Finale

All the inventory tips, trends, best practices, news, and insights you need, delivered straight to your inbox.

Subscribe to Our Newsletter