Insights · 14 Nov 2026

How to Track Cost of Goods (COGS) in WooCommerce – Navyug InfoTech

If you do not know what each product costs you, you do not know whether you are making money.

By Navyug InfoTech, Ahmedabad

How to track cost of goods (COGS) in WooCommerce

If you do not know what each product costs you, you do not know whether you are making money. Revenue, orders and conversion rates all look healthy on a dashboard, but none of them tell you the profit on a single sale.

At Navyug InfoTech we see this in almost every WooCommerce store we audit: plenty of sales data, and no cost data at all. The fix is simple, but it has to be done properly.

Here is how to track cost of goods (COGS) in WooCommerce.


What Counts as Cost of Goods

  • The purchase price you pay a supplier for each unit
  • The cost of materials and making the product, if you manufacture it
  • Inbound freight or import charges you pay to get stock to you
  • Packaging that goes out with every unit
  • Not included: rent, salaries, marketing and other running costs, which are business expenses rather than product cost

Three Ways to Record Product Cost in WooCommerce

1. WooCommerce’s own Cost of Goods Sold field

Newer versions of WooCommerce include a Cost of Goods Sold feature that adds a cost field to products. If your store has it, this is the cleanest place to keep the number.

2. A cost field from an analytics plugin

Many stores run an older WooCommerce version or need cost tracking alongside reporting. An analytics plugin can add a cost per product and use it directly in profit reports.

3. A spreadsheet

Some owners keep costs in a spreadsheet and calculate profit by hand each month. It works for a handful of products, but it breaks quickly as the catalogue grows and nobody updates the sheet.


The Problem With Changing Costs

Supplier prices change. If your report always reads the current cost from the product, then updating a cost today silently changes the profit of every order you made last year.

The fix is to store the cost on each order line at the moment of the sale. Then old orders keep the cost they really had, and only new orders use the new price.


A Simple COGS Checklist

  • Add a cost to every product and every variation, not only the best sellers
  • Include packaging and inbound freight if they are part of each unit
  • Review costs whenever a supplier changes its price
  • Store cost on the order line so old margins do not move
  • Check what share of your revenue actually has a cost recorded
  • Look at margin per product every month, not just total profit

Tracking COGS With NIT Sales Analytics

NIT Sales Analytics for WooCommerce is our free plugin on WordPress.org, and cost of goods is at its core.

  • Set a cost per product, or use WooCommerce’s own Cost of Goods Sold fields where they are available
  • See the profit margin on every product and every order
  • Backfill Costs tool that writes today’s cost onto past order lines that recorded none, so a margin stops moving every time you edit a price
  • Cost coverage on the Net Profit screen, so an uncosted order is never reported as pure profit
  • Low-margin product alerts in the Insights screen
  • Your WooCommerce orders and products are only read, never modified, apart from the optional backfill you run yourself

Our WooCommerce Development Services

Navyug InfoTech helps WooCommerce stores get their numbers right, from product setup to reporting.

  • WooCommerce Store Setup and Development
  • Product, Variation and Cost Data Clean-up
  • Profit and Sales Reporting Setup
  • Payment Gateway and Shipping Integration
  • Ongoing WooCommerce Maintenance and Support

Why Choose Navyug InfoTech?

  • 10+ Years of Web and eCommerce Development Experience
  • Developers of a WooCommerce analytics plugin listed on WordPress.org
  • Practical, Business-First Advice
  • Complete Setup, Design and Integration Services
  • Ongoing Support After Launch

Frequently Asked Questions

What is cost of goods sold (COGS) in WooCommerce?

COGS is what the products you sold actually cost you, whether you bought them from a supplier or made them yourself. In WooCommerce it is usually stored as a cost value on each product, so every order can show the profit on each line.

Does WooCommerce have a cost of goods field?

Newer versions of WooCommerce include a Cost of Goods Sold feature, and older stores often use a plugin or a custom field. NIT Sales Analytics can use WooCommerce's own Cost of Goods Sold fields where they are available, or let you set a cost per product directly.

What happens to old orders when I change a product's cost?

If cost is only read from the product at report time, changing it rewrites the margin of every past order. A better approach is to store the cost on each order line when the sale happens. NIT Sales Analytics includes a backfill tool that writes today's cost onto past order lines that recorded none, so old margins stop moving.


Start Tracking Cost of Goods for Free

Install NIT Sales Analytics, add your product costs and see your real margin per product and per order.

Download Free from WordPress.org
Start a project

Ready for a website that feels like the future?

Tell us about your business. We will reply with a clear plan, timeline and quote.