---
title: How to Track Cost of Goods and Profit in WooCommerce
description: "To track cost of goods and profit in WooCommerce, install [Cost of Goods: Product Cost & Profit Calculator for WooCommerce](https://wpfactory.com/item/cost-of-goods-for-woocommerce/), enter each product's cost in the **Cost** field under its prices, and set options at **WPFactory > Cost of Goods**…"
url: "https://wpfactory.com/docs/use-cost-of-goods-plugin2/"
updated: "2026-09-26"
category: How to
---

# How to Track Cost of Goods and Profit in WooCommerce

To track cost of goods and profit in WooCommerce, install [Cost of Goods: Product Cost & Profit Calculator for WooCommerce](https://wpfactory.com/item/cost-of-goods-for-woocommerce/), enter each product's cost in the **Cost** field under its prices, and set options at **WPFactory > Cost of Goods** (also at **WooCommerce > Settings > Cost of Goods**). Profit is then calculated for products and new orders.

## Can WooCommerce track cost of goods without a plugin?

Only in a limited way, depending on your version. WooCommerce core is built around selling prices, and its reports and Analytics focus on sales and revenue rather than profit. Recent WooCommerce releases have started adding a basic cost of goods option, but if your version lacks it, or you also need payment gateway and shipping method costs, refund rules or multi-currency costs, use the options below.

Is your store making a profit? Or what is the profit percentage? Is it higher than your costs or not?

To give me an answer to all these questions, you must definitely calculate what is called the Cost of Goods Sold to determine the profit. So, what is the Cost of Goods Sold (COGS)?

The Cost of Goods Sold represents the direct costs of producing goods sold by your store, including materials, labor, shipping cost, and overhead cost. When you are calculating the cost of goods sold you can determine whether your eCommerce store is making a profit or not.

But we all know that calculating the cost of goods sold manually takes a lot of time and requires a high level of accuracy, that’s why the **WooCommerce Cost of Goods: Product Cost & Profit Calculator plugin**exists, which makes the process easier and efficient.

Here’s how you can calculate (COGS) using the appropriate plugin

[![Cost of Goods for WooCommerce](https://wpfactory.com/wp-content/uploads/Cost-of-Goods-for-WooCommerce-1024x333.webp)](https://wpfactory.com/item/cost-of-goods-for-woocommerce/)

## **Step1:**

- ### **Download The Plugin**

Download the “[**WooCommerce Cost of Goods: Product Cost & Profit Calculator**](https://wpfactory.com/item/cost-of-goods-for-woocommerce/)**”** plugin from your [**WPFactory**](https://wpfactory.com/) account, and upload it to your WordPress site.

![How to Calculate Cost of Goods Sold in WooCommerce - Step1](https://wpfactory.com/wp-content/uploads/How-to-Calculate-Cost-of-Goods-Sold-in-WooCommerce-Step1-1024x724.webp)

## **Step2:**

- ### **Access The Plugin**

As the plugin is installed, you can customize it for your business requirements.

Go to **WPFactory > Cost of Goods** (also reachable at **WooCommerce > Settings > Cost of Goods**).

![How to Calculate Cost of Goods Sold in WooCommerce - Step2](https://wpfactory.com/wp-content/uploads/How-to-Calculate-Cost-of-Goods-Sold-in-WooCommerce-Step2-1024x545.png)

Here, you can:

- Enter default cost for products.
- Configure how costs should be calculated for variable products.
- Enable automatic COGS tracking for orders.

## **Step3:**

- ### **Assign Cost to Products**

Go to the product page, you can add costs for each product individually or for the bulk products.

- ### **Edit****Individual****Product Costs**

From here, as shown in the image below, you can add costs for a single product by going to the product page > Product data section > General > Cost

![How to Calculate Cost of Goods Sold in WooCommerce - Step3](https://wpfactory.com/wp-content/uploads/How-to-Calculate-Cost-of-Goods-Sold-in-WooCommerce-Step3-1024x499.png)

Here, you can input the **Regular price**, **Sale price, and product cost,**and then the profit will be automatically calculated and displayed.

![How to Calculate Cost of Goods Sold in WooCommerce - Step3 (2)](https://wpfactory.com/wp-content/uploads/How-to-Calculate-Cost-of-Goods-Sold-in-WooCommerce-Step3-2-1024x499.png)

- ### **Edit Bulk Product Costs**

If you sell multiple products, this plugin makes it easy for you to add the costs of these products via the **Bulk Edit Costs**option

Go to your WordPress dashboard > navigate to Tools > Bulk Edit Costs. Editing costs product by product in this tool is free; updating costs or prices automatically in bulk is a Pro feature.

![How to Calculate Cost of Goods Sold in WooCommerce - Step3 (3) - Edit Bulk Product Costs](https://wpfactory.com/wp-content/uploads/How-to-Calculate-Cost-of-Goods-Sold-in-WooCommerce-Step3-3-Edit-Bulk-Product-Costs-1024x499.png)

As shown in the image below, this page allows you to edit the cost, price, and stock of all your products in your store, making it easier and faster to manage these details from a single page.

![How to Calculate Cost of Goods Sold in WooCommerce - Step3 (4)](https://wpfactory.com/wp-content/uploads/How-to-Calculate-Cost-of-Goods-Sold-in-WooCommerce-Step3-4-1024x499.png)

## **Step4:**

- ### **Access the Plugin Setting**

There are general settings related to the plugin that you can customize by going to Plugin setting > General product options

The first option expresses **profit HTML template,**which means customizing the template that will display the profit in the interface. For example, the**%profit%**option shows you the profit amount, and the**%profit_percent%**shows the profit percentage, while **%profit_margin%**is used for the profit margin.

So, you can display the profit in the way that suits you.

![How to Calculate Cost of Goods Sold in WooCommerce - Step4](https://wpfactory.com/wp-content/uploads/How-to-Calculate-Cost-of-Goods-Sold-in-WooCommerce-Step4--1024x499.png)

## **Step5:**

- ### **Get Price method**

This option helps you determine how the product price will be calculated, either:

- Calculating the price including tax.
- Calculating the price excluding tax.

![How to Calculate Cost of Goods Sold in WooCommerce - Step5](https://wpfactory.com/wp-content/uploads/How-to-Calculate-Cost-of-Goods-Sold-in-WooCommerce-Step5-1024x499.png)

## **Step6:**

- ### **Cost Field Options**

With the**Cost Field Label**option, you can customize the label on the cost field that appears in the control panel

You can also control where the cost field appears on the product page, for example, you can show it on the products **editing page** under the **general**section under **prices**.

![How to Calculate Cost of Goods Sold in WooCommerce - Step6](https://wpfactory.com/wp-content/uploads/How-to-Calculate-Cost-of-Goods-Sold-in-WooCommerce-Step6-1024x499.png)

## **Step7:**

- ### **Admin Products List Columns**

This section allows you to add custom columns that appear in the product list. You can add columns that show:

- **Product Cost:**which shows you the cost of each product in the product list.
- **Product Profit:**Which shows the amount of profit for each product based on the cost and price.

![How to Calculate Cost of Goods Sold in WooCommerce - Step 7](https://wpfactory.com/wp-content/uploads/How-to-Calculate-Cost-of-Goods-Sold-in-WooCommerce-Step-7-1024x499.png)

This is a good way because it gives you a quick overview at the costs and profits of tour products in one look and from one place, allowing you to easily compare products with each other and see which one is more profitable.

![How to Calculate Cost of Goods Sold in WooCommerce - Step7(2)](https://wpfactory.com/wp-content/uploads/How-to-Calculate-Cost-of-Goods-Sold-in-WooCommerce-Step72-1024x499.png)

## **Step8:**

- ### **Add Stock**

This feature enables you to update the product’s cost and stock by adding a meta box to the product edit page. It helps you to calculate the new average cost of products when adding new inventory.

![How to Calculate Cost of Goods Sold in WooCommerce - Step8](https://wpfactory.com/wp-content/uploads/How-to-Calculate-Cost-of-Goods-Sold-in-WooCommerce-Step8-1024x499.png)

![How to Calculate Cost of Goods Sold in WooCommerce - Step8(2)](https://wpfactory.com/wp-content/uploads/How-to-Calculate-Cost-of-Goods-Sold-in-WooCommerce-Step82-1024x499.png)

## **Step9:**

- ### **Admin Orders List Columns**

From the **Order**tab, you can add order cost and order profit columns, which will appear on the order page.

![How to Calculate Cost of Goods Sold in WooCommerce - Step9](https://wpfactory.com/wp-content/uploads/How-to-Calculate-Cost-of-Goods-Sold-in-WooCommerce-Step9-1024x499.png)

- ### **Admin Order Edit**

This option will make it easier for you to edit costs from the order edit page

![How to Calculate Cost of Goods Sold in WooCommerce - Step9(2)](https://wpfactory.com/wp-content/uploads/How-to-Calculate-Cost-of-Goods-Sold-in-WooCommerce-Step92-1024x499.png)

## **Step10:**

- ### **Refunds**

This section allows you to control how the refund affects the cost of the product and profits, simply, enabling one of these options:

- Ignore refunded item cost
- Ignore item refund amount

The refunds will not affect profit or cost calculations. Hence, if you want to ignore the refunds in the profit and cost calculation, activating these two options will suffice.

You can also determine the method of calculating profits through the three existing methods:

- Use default profit calculation mechanism
- Subtract total refunded from profit
- Calculate profit by the difference between Net Payment and Cost

![How to Calculate Cost of Goods Sold in WooCommerce - Step10](https://wpfactory.com/wp-content/uploads/How-to-Calculate-Cost-of-Goods-Sold-in-WooCommerce-Step10-1024x499.png)

## **Step11:**

- ### **Extra Payment Gateway Cost**

From the Payment Gateways tab, you can add extra costs to orders according to the payment gateways used.

![How to Calculate Cost of Goods Sold in WooCommerce - Step11](https://wpfactory.com/wp-content/uploads/How-to-Calculate-Cost-of-Goods-Sold-in-WooCommerce-Step11-1024x499.png)

## **Step12:**

- ### **Extra Shipping Method Costs**

And the same thing here, by enabling this section you can add extra costs for your orders based on order’s shipping method

![How to Calculate Cost of Goods Sold in WooCommerce - Step12](https://wpfactory.com/wp-content/uploads/How-to-Calculate-Cost-of-Goods-Sold-in-WooCommerce-Step12-1024x499.png)

## **Step13:**

- ### **Multicurrency (Pro)**

If you deal with multiple currencies in your store, this may change the cost of the product from one currency to another. Through this section, you can add the currencies you deal with to be tracked by the plugin and calculate their costs.

![How to Calculate Cost of Goods Sold in WooCommerce - Step13](https://wpfactory.com/wp-content/uploads/How-to-Calculate-Cost-of-Goods-Sold-in-WooCommerce-Step13-1024x495.png)

## **Step14:**

- ### **Reports (Pro)**

The final step is**“Reports”,**this plugin provides you with many reports, which provide you with reports on the product sold, the profit percentage, and costs for each period.

You can access it by navigating to WooCommerce > Reports > Orders > Cost of Goods.

![How to Calculate Cost of Goods Sold in WooCommerce - Step14](https://wpfactory.com/wp-content/uploads/How-to-Calculate-Cost-of-Goods-Sold-in-WooCommerce-Step14-1024x498.webp)

You can also get reports related to your **stock** at WooCommerce > Reports > Stock > Cost of Goods.

![How to Calculate Cost of Goods Sold in WooCommerce - Step14(2)](https://wpfactory.com/wp-content/uploads/How-to-Calculate-Cost-of-Goods-Sold-in-WooCommerce-Step142-1024x495.webp)

## Frequently asked questions

### Where do I enter a product's cost?

On the product edit page, in **Product data > General**, below the regular and sale prices. Variable products get a cost field in each variation's pricing area. You can change the field's label and position under **Cost field options**.

### Will past orders show profit after I add costs?

Costs are saved on an order when it is created or updated, so orders placed before you entered costs are not updated automatically. The **Recalculate orders** tool in the Tools section recalculates cost and profit for all orders, and it is a Pro feature.

### Are the Cost of Goods reports free?

No. The reports under **WooCommerce > Reports** are Pro. The free version adds cost and profit columns to the Orders and Customers reports in WooCommerce Analytics; see [cost and profit in WooCommerce Analytics](https://wpfactory.com/docs/cost-profit-in-woocommerce-analytics/).

### Can I include payment and shipping fees in the profit?

Yes. The Payment Gateways section adds fixed or percent costs per gateway, and the Extra Shipping Method Costs section does the same per shipping method. See [how to add payment gateway costs](https://wpfactory.com/docs/manage-payment-gateways/).

## **Final Words**

As we always say: correct numbers = correct analysis, which means clarity. While accurate numbers and correct analysis don't necessarily guarantee profit, they are essential for understanding your business's financial health and making informed decisions.

So, calculating the cost of goods sold accurately is a fundamental step toward achieving this clarity. It allows you to track your costs, and identify areas for improvement to make your profits.

Related articles

- [Profit Calculation Issues in WooCommerce Cost of Goods](https://wpfactory.com/docs/profit-calculation-issue/)
- [Track Product Cost History with the Cost Archive](https://wpfactory.com/docs/product-cost-history-archive/)
- [Bulk Change Prices by Cost and Profit](https://wpfactory.com/docs/bulk-change-prices-by-cost-and-profit/)
- [Cost of Goods: Reset a Settings Section](https://wpfactory.com/docs/cost-of-goods-reset-a-settings-section/)
- [Configure Multicurrency Cost and Profit Calculation](https://wpfactory.com/docs/configure-multicurrency-settings/)
