WooCommerce Cost of Goods Sold (COGS)

The Cost of Goods Sold (COGS) feature lets you record the cost of buying or making products in your WooCommerce store. You can set costs for products and variations and view costs on orders.

What is Cost of Goods Sold (COGS)?

↑ Back to top

Cost of Goods Sold is the direct cost of producing or purchasing the products a business sells. The costs you record can help you assess product and order profitability. They do not, by themselves, account for every business expense.

Enable COGS Feature

↑ Back to top

To enable the Cost of Goods Sold (COGS) feature, please follow the steps below:

  1. Navigate to WooCommerce > Settings > Advanced > Features
  2. Scroll down to the Cost of Goods Sold option
  3. Check the box to enable Cost of Goods Sold
  4. Click Save changes

Setting COGS for Products

↑ Back to top

Once the COGS feature is enabled, you can set the cost for individual products and variations.

COGS for Simple Products

↑ Back to top

For simple products, please follow the steps below:

  1. Go to the Product Editor in the admin area.
  2. Under the General tab, you’ll find a new field labeled Cost of Goods.
  3. Set the cost value for the product (defaults to zero if not set).

COGS for Variations

↑ Back to top

For variable products, the Cost of Goods field in the General tab will display a default value inherited by all variations.

You can override the default value for each variation by entering a cost in the field for individual variations.

A bulk action is available to remove custom costs from all variations, reverting them to the default cost.

COGS in Orders

↑ Back to top

COGS details are also present within the order editor in the admin area. In the order editor, a new “Cost” column will display the cost of each item in an order (i.e., the individual product cost multiplied by the quantity of the line item). Additionally, the Cost Total will be shown next to the total order amount.

For orders with refunds, the Cost column will display the combined cost of the refunded items. Additionally, a tooltip is also available to show the cost per unit of each product.

Frequently Asked Questions

↑ Back to top

What happens if I use another COGS plugin alongside the WooCommerce COGS feature?

↑ Back to top

If you enable both WooCommerce COGS and another COGS plugin, you may see separate cost fields or totals. Check the other plugin’s documentation and decide which source to use for your records.

Does the Analytics include COGS data?

↑ Back to top

Currently, the COGS feature does not integrate with WooCommerce Analytics.

Does changing a product’s price update COGS on existing orders?

↑ Back to top

Changing a product’s price does not automatically change the recorded cost on existing orders.

Does COGS support import/export?

↑ Back to top

Yes, the WooCommerce core product CSV import/export tool has been extended to support the COGS field. You can now export the COGS values and create a CSV import file to import these values back into your store.

Questions and support

↑ Back to top

Do you still have questions and need assistance? 

This documentation is about the free, core WooCommerce plugin, for which support is provided in our community forums on WordPress.org. By searching this forum, you’ll often find that your question has been asked and answered before.

If you haven’t created a WordPress.org account to use the forums, here’s how.

  • If you’re looking to extend the core functionality shown here, we recommend reviewing available extensions in the WooCommerce Marketplace.
  • Need ongoing advanced support or a customization built for WooCommerce? Hire a Woo Agency Partner.
  • Are you a developer building your own WooCommerce integration or extension? Check our Developer Resources.

If you weren’t able to find the information you need, please use the feedback thumbs below to let us know.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.