Cost of Goods Sold (COGS): Cost & Profit Calculator for WooCommerce


“Best Plugin There is For Woocommerce Profit Calculation: I cannot believe how amazing this plugin really is! I don’t normally write reviews, but I have tested a couple of plugins to calculate profit etc. But this is by far the best. There are many options to choose from and once you get it all set, it works wonders. Also Pablo from support has been great! Thank you so much in abundance.” – ⭐⭐⭐⭐⭐ shahican

Every WooCommerce store owner recognizes the significance of understanding their financial health, but pinpointing exact metrics like Cost of Goods Sold (COGS) can often be a complex chore with the default WooCommerce settings.

As stores expand, the urgency for comprehensive financial insights, analytics, and reports becomes paramount, there’s a rising need for a precise tool tailored for this purpose, and that’s why we have built this plugin for a simple reason:

Give you a full control over your Cost of Goods & Financial Reporting

So whether for a product, category, or the whole store, and for a specific period, a month, quarter, or any time frame you can think of, our plugin will give you a holistic overview of financial reporting for your WooCommerce store.

Whether you sell simple products or a wide range of variations, this plugin calculates COGS with precision and offers actionable insights.

In a nutshell, this what you’ll expect to get in this plugin:

  • Customizable Product Costs: Define the costs of goods for each of your products to track profitability accurately

  • Versatile Costs for Variable Products: Assign costs either to each individual variation or to all variations collectively, offering flexibility based on your product range

  • Enhanced Admin Visibility: Add sortable columns in the WooCommerce admin section, providing insights into product/order cost and profit directly in product and order lists

  • Smooth Data Import/Export: Effortlessly integrate product costs via CSV files, utilizing the standard WooCommerce Import and Export tools

  • Bulk Edit Functionality: Modify product costs, prices, and stock in bulk from a dedicated page, streamlining inventory management

  • Import from Other Metas: With the specialized import tool, bring in costs from other product metas to ensure consistent pricing data

  • Optional Order Meta Box: Integrate a “Cost of Goods” meta box in the admin order edit page for deeper cost insights at the order level

  • Profit Warning: Receive a notification on the admin order edit page when a particular order’s profit dips below zero, ensuring vigilant monitoring

  • Flexible Order Costs: Define additional costs either universally across all orders or on a per-order basis. This includes specifying extra payment gateway costs and shipping method costs

  • Automatic Average Cost Calculation: Utilize the add stock tool to auto-calculate the average product cost, reducing manual computations

  • Analytics Integration: Benefit from the inclusion of cost/profit columns directly in the WooCommerce Analytics > Orders section for a quick financial overview

Useful Links

🤝 Recommended By

🚀 Main Features: FREE Version

🚀 Product Cost of Goods Sold (COGS) Management

🚀 Cost of Goods Sold (COGS) & Profit Calculation

  • Create a cost field for every simple product, variable, or variation to properly calculate profit

  • Select to calculate profit based on the price with tax, without tax, or regular price

  • Show & customize profit text, select to show profit, profit percentage, profit margin, or any mix of these values

  • Get detailed figures by selecting how many decimal points to show in cost field for accurate reporting

  • Select cost field location from different placements, you can insert in product page in General tab, pricing section, Inventory & SKU, or Advanced tab

  • Show product cost & product profit in WooCommerce Admin list to have a general overview, as well as allowing to sort by cost & profit for all products at once

🚀 Save Historical Data for Cost of Goods

By preserving past cost data, this feature enables businesses to track how the cost structure of their products has evolved, providing a clear window into shifts in supplier pricing, manufacturing costs, or other contributing factors.

Such historical data becomes invaluable when analyzing profitability trends, forecasting future expenses, and making informed pricing decisions.

🚀 Order Cost of Goods Sold (COGS) & Profit Management

🚀 Calculate Cost & Profit by Order

  • Show Profit & Cost of Goods Sold fields in WooCommerce admin orders list to easily track cost & profit per order

  • For accurate reporting, select which order statuses to show costs values

  • For Profit, select what columns to add, include any of profit, profit percentage, profit margin values to the orders columns

  • ِAdd items cost field to order **edit ** page either as editable or just readonly

  • Re-adjust order costs even after order is processed if cost changed, for a better & accurate reporting

  • Edit order by items, or for the whole order at once

  • Enable notification in order edit page in case order profit is below zero

  • Import items costs when adding items to orders (in order edit page)

🚀 Total Order Cost & Profit Calculation

  • Define options for order cost and profit calculations based on your financial standards

  • Select to calculate order costs to be either subtotal including tax, total including tax, or total excluding tax

  • Select to calculate order shipping costs in order profit (by percentage, i.e. including part of shipping cost or all of it)

  • Add order fees to order profit

  • Adds order taxes to the order profit

  • Select when to calculate order profit based on order status

🚀 Refunded Orders Cost & Profit Calculation

  • Calculate orders quantity by excluding refunded items

  • Select to calculate refunds from many options: Profits ignoring refunds, subtract total refunded items from profit, subtract each item’s refund amount from profit, or go further and calculate profit by the difference between Net Payment and Cost

  • Select to include tax on Net Payment

🚀 Orders Extra Costs

  • Insert a fixed or percentage (from total order) extra cost to be added to all orders

  • Choose to include meta box on order edit page to calculate extra costs like: Handling fees, Shipping Fees, or Payment fees (by order)

  • Add extra costs by order meta (like Stripe & PayPal transaction fees)

🚀 Payment Gateways Cost Management

  • Add fixed costs and/or percentage costs to orders based on the payment gateway which processed the order

  • Works on default payment gateways (CoD, Direct transfers, CC) as well as any extra custom gateway used on your store

🚀 Shipping Methods Cost Management

  • Calculate extra costs associated with each shipping method by fixed and/or percentage cost

  • Use shipping methods instances (with shipping zones) instead of shipping methods

  • Works on all shipping methods available on your store

🚀 Costs Bulk Edit Tools

Navigating the financial aspects of a WooCommerce store can often be complex, especially when it comes to making widespread changes to product costs.

Our plugin seamlessly addresses this challenge, introducing free tools that empower store owners to apply bulk changes to product costs, without the usual hassles, using these methods:

  • Manual Edits: Dive into the details by manually editing the cost, regular price, sale price, stock, and even tags for each product

  • By Price: Modify product costs based on a set percentage, offering a more uniform approach to price alterations

  • By Profit: Add a specific percentage to ensure profitability is maintained or optimized across the board

🚀 Bulk Change Prices by Costs & Desired Profit

Once you set product costs, you can use our built-in tool to change product prices based on a desired profit, either by a fixed amount or profit perecentageز

🚀 Import & Export Costs

  • Import and export product costs from and to a CSV file with standard WooCommerce Import and Export tools

  • You can also use our import tool if you need to import costs from another product metas

🚀 More Advanced Options

  • Replace comma by dots when updating cost meta


Follow these simplified steps to get your plugin up and running:

From the WordPress Admin Panel:
1. Navigate to “Plugins” > “Add New”.
2. Use the search bar and find the plugin using the exact name.
3. Click “Install Now” for the desired plugin.
4. Once the installation is finished, and click “Activate”.

Manual Installation Using FTP:
1. Download the desired plugin from
2. Using your preferred FTP client, upload the entire plugin folder to the /wp-content/plugins/ directory of your WordPress installation.
3. Go to “Plugins” > “Installed Plugins” in your dashboard and click “Activate”.

Manual download & upload from the WordPress Admin Panel:
1. Download the desired plugin in a ZIP format.
2. On your site, navigate to “Plugins” > “Add New” and click the “Upload Plugin” button.
3. Choose the downloaded plugin file and click “Install Now.”
4. After the installation is complete, click “Activate”.

Once activated, access the plugin’s settings by navigating to “WooCommerce > Settings” and look for the relevant tab.


What can I do if the cost field is not saving?

If even after clicking “Update” on the product edit page the cost field is not saving, please try to change this option:
– Cost field position

What is the easiest way to export the full inventory (cost of all goods)?

Probably the easiest way of doing it would be through the default WooCommerce export, over:
– Products > All products > Export

How do I bulk edit cost of goods for a specific product category?

First, you have to enable two options:

  • Products > Quick and Bulk Edit > Cost field > Add “Cost” field to product “Quick Edit”
  • Products > Quick and Bulk Edit > Cost field > Add “Cost” field to product “Bulk Actions > Edit”

And then you can follow these steps:

  1. Access your products listing page
  2. Filter by the category
  3. Select all
  4. Click edit on “Bulk actions” dropdown
  5. Edit the field you want


Mijdar 23, 2023 1 reply
I am unable to find out how to see my stock value. I see COG on product and order level, but no statistics related to the actual stock, like stock value at a certain day, or currently, for example. Where are you hiding this information?
Sibat 24, 2023 1 reply
Hi! I've used an older version of cost of goods plugin and in the all import plugin there was a custom field of cogs (I was able to import cogs with wp all import). Currently there's no such field, is that the cogs plugin issue or is it the all import plugin issue? Thanks,Jurgis.
Kanûn 9, 2022 1 reply
This Plugin is one of the best to calculate my profits, at first I had a troubble because automatic product imports from CSV was not updating my cost price, I contacted the support team and they solved it very quickly with a new feature at his plugin !!! Great job !!
Mijdar 7, 2022 1 reply
I cannot believe how amazing this plugin really is! I don't normally write reviews, but I have tested a couple of plugins to calculate profit etc. But this is by far the best. There are many options to choose from and once you get it all set, it works wonders. Also Pablo from support has been great! Thank you so much in abundance.
Read all 35 reviews

Contributors & Developers

“Cost of Goods Sold (COGS): Cost & Profit Calculator for WooCommerce” is open source software. The following people have contributed to this plugin.


“Cost of Goods Sold (COGS): Cost & Profit Calculator for WooCommerce” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Cost of Goods Sold (COGS): Cost & Profit Calculator for WooCommerce” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.


3.3.0 – 29/02/2024

  • Fix – Tools – Filter by tags from bulk edit costs has unnecessary javascript.
  • Fix – Tools – Bulk edit costs – Cost input exceeds column width.
  • Fix – COG input does not get displayed on variations when using the Subscriptions For WooCommerce Pro plugin.
  • Dev – Tools – Improve Bulk edit costs and prices code and design.
  • Dev – Tools – Create option to increase costs by x%.
  • Dev – Tools – Create option to decrease costs by x%.
  • WC tested up to: 8.6.

3.2.9 – 17/02/2024

  • Fix – Vulnerability problem.
  • Fix – Creation of dynamic property Alg_WC_Cost_of_Goods_Bulk_Edit_Tool::$wp_list_bulk_edit_tool.

3.2.8 – 14/02/2024

  • Fix – Call to a member function is_type() on bool in class-alg-wc-cog-products.php:504.

3.2.7 – 13/02/2024

  • Fix – Orders – Calculations – Shipping to profit percentage is going to fees and taxes to profit.
  • Dev – Orders – Calculations – Create option to set taxes to profit percentage.
  • Dev – Orders – Calculations – Create option to set fees to profit percentage.

3.2.6 – 09/02/2024

  • Fix – Products – Quick and Bulk Edit – Cost field – Auto populate javascript initializes even with the option disabled.

3.2.5 – 04/02/2024

  • Fix – Add stock – Using the Add stock option triggers an error with the Add stock option is disabled.
  • Fix – Add stock – Selecting a variation with empty history triggers an error.

3.2.4 – 03/02/2024

  • Dev – Compatibility – Add compatibility options with WPSyncSheets plugin to export order cost and profit.
  • Dev – Improve compatibility settings readability.

3.2.3 – 31/01/2024

  • Fix – Multicurrency – Improve multicurrency description.
  • Dev – Products – Quick and Bulk Edit – Cost field – Auto populate cost on quick edit.
  • Dev – Create separate class for quick and bulk edit fields.

3.2.2 – 03/01/2024

  • Fix – Analytics – Stock – Cost and profit totals do not consider products with zero stock.

3.2.1 – 28/12/2023

  • Dev – Analytics – Stock – Show cost and profit totals on “Analytics > Stock”.

3.2.0 – 20/12/2023

  • Fix – Advanced – “Avoid empty order metadata from being saved to database” option might trigger errors on checkout.

3.1.9 – 19/12/2023

  • Dev – Compatibility – Measurement Price Calculator – Add option to adjust the cost of goods sold according to the product measurement.
  • Dev – Compatibility – Measurement Price Calculator – Create option to add the placeholder %measurement_unit% to the cost field label option.
  • Dev – Add filter hook alg_wc_cog_cost_input_label_placeholders.

3.1.8 – 13/12/2023

  • Fix – Uncaught Error: Call to a member function is_type() on bool in Alg_WC_Cost_of_Goods_Products_Add_Stock.
  • WC tested up to: 8.4.

3.1.7 – 13/12/2023

  • Fix – Cost archive – Cost data is updated even when previous and current values are the same.
  • Fix – It’s possible to use the “Add stock” feature even with the product “Stock management” disabled.
  • Dev – Make “Add stock” feature available for variations.
  • Dev – Create “Add stock” history date format option.
  • Dev – Create “Add stock” history date order option.
  • Dev – Make “Cost archive” feature available for variations.
  • Dev – Create “Cost archive” date order option.

3.1.6 – 08/12/2023

  • Fix – “PHP Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in Alg_WC_Cost_of_Goods_Orders“.
  • Dev – Move product shortcodes settings to its own section.

3.1.5 – 28/11/2023

  • Fix – Update stock triggers the error “Call to undefined method Alg_WC_Cost_of_Goods_Products::product_add_stock()“.

3.1.4 – 28/11/2023

  • Fix – Orders page triggers the error “Call to a member function get_meta() on bool in Alg_WC_Cost_of_Goods_Orders_Meta_Boxes“.
  • WC tested up to: 8.3.

3.1.3 – 16/11/2023

  • Tested up to: 6.4.
  • Dev – Advanced – Create new option to avoid saving empty order metadata.

3.1.2 – 28/10/2023

  • Dev – New Option “Per Item” Under Extra shipping classes costs > Fixed cost calculation.

3.1.1 – 20/10/2023

  • Fix – Alg_WC_Cost_of_Goods_WP_List_Bulk_Edit_Tool->fix_paged_query_string_on_search_change() with cookies.

3.1.0 – 19/10/2023

  • Dev – Shortcodes – New shortcode: [alg_wc_cog_product_profit].
  • Dev – Shortcodes – New shortcode: [alg_wc_cog_product_cost].

3.0.9 – 18/10/2023

  • Fix – Analytics – Cost and Profit columns are not present in Products CSV sent by email.

3.0.8 – 16/10/2023

  • Fix – Error message: CustomOrdersTableController is not being managed by the container.

3.0.7 – 10/10/2023

  • Fix – Products – Quick and bulk edit – “Replace all variations from the main variable product” does not work if “Hide out of stock items from the catalog” is enabled.
  • Fix CSS from bulk edit.
  • WC tested up to: 8.2.

3.0.6 – 24/09/2023

  • WC tested up to: 8.1.
  • update plugin icon, banner

3.0.5 – 11/09/2023

  • Fix – Orders – Extra costs:Per order – PHP memory error fixed.

3.0.4 – 19/08/2023

  • Fix – Fix error where free and pro versions are enabled simultaneously and the free version is updated before pro version.

3.0.3 – 18/08/2023

  • Fix – Undefined property: Alg_WC_Cost_of_Goods_Orders::$order_columns.
  • Dev – Move main class to a separate file.
  • Tested up to: 6.3.
  • WC tested up to: 8.0.

3.0.2 – 28/07/2023

  • Dev – Add compatibility with HPOS.
  • WC tested up to: 7.9.

3.0.1 – 17/06/2023

  • WC tested up to: 7.8.

3.0.0 – 13/06/2023

  • Dev – Tools – Analytics – Orders – Individual elements should be present on the CSV.

2.9.9 – 25/05/2023

  • Update function Alg_WC_Cost_of_Goods_Products() ->get_product_price() with condition if product object exist or not .

2.9.8 – 16/05/2023

  • Fix – Analytics – Update dependencies.
  • Dev – Tools – Analytics – Orders – New option: Add columns for individual elements from the costs total.
  • WC tested up to: 7.7.

2.9.7 – 25/04/2023

  • Fix – Bulk edit prices – Calculation is incorrect.

2.9.6 – 18/04/2023

  • Fix – class-alg-wc-cog-products.php:456 – Call to a member function is_type() on bool.
  • WC tested up to: 7.6.

2.9.5 – 17/04/2023

  • Fix – Products – Cost archive – New price column doesn’t take decimals into account.
  • Dev – Tools – Bulk edit costs – New option: Filter by cost, allowing to select only products with no costs or with costs.
  • Dev – Tools – Bulk edit costs – New section: Variation – Set or update the variations to have the same cost value as their parent products.

2.9.4 – 04/04/2023

  • Fix – “Creation of dynamic property” PHP warning is being triggered on multiple locations.
  • Fix – Unsupported operand type: float / string on line 482 in class-alg-wc-cog-products.php.

2.9.3 – 29/03/2023

  • Fix – Reports – Stock – Cost of Goods – Products registered with price/cost starting with comma or dot won’t be displayed on report.
  • Dev – Products – Cost archive – New option: Use REGEXP_SUBSTR function to get the dates.
  • Dev – Products – Cost archive – New option: Date format.
  • Dev – Tools – Reports – Extra data – Add shipping to profit.
  • Dev – Tools – Reports – Extra data – Add fees to profit.
  • Dev – Tools – Reports – Extra data – Add taxes to profit.
  • WC tested up to: 7.5.
  • Tested up to: 6.2.

2.9.2 – 08/03/2023

  • Dev – Tools – Recalculation – Date – New option: After date.
  • Dev – Tools – Recalculation – Date – New option: Before date.
  • Dev – Tools – Recalculation – Date – New option: Date type.

2.9.1 – 21/02/2023

  • Dev – Shipping – Percent cost – New option: Percent cost source.
  • Dev – Shipping – Percent cost – New option: Shipping total calculation method, regarding taxes.

2.9.0 – 16/02/2023

  • Fix – Bulk update prices – Variations are not getting updated.
  • Dev – Orders – Calculations – Display “Shipping”, “Fees” and “Taxes to profit” on order meta box as extra profit.
  • Dev – New filters: alg_wc_cog_extra_profit_meta_keys.
  • WC tested up to: 7.4.

2.8.9 – 06/02/2023

  • Add German translation.
  • Fix – Compatibility – ATUM – Taxes option is not working well.
  • Fix – Bulk edit costs – Variation name is incomplete.

2.8.8 – 25/01/2023

  • Fix – Bulk edit tool – Change access control check from manage_options to manage_woocommerce.
  • Fix – Multicurrency – Currencies costs – Profit does not change.
  • Dev – Orders – Calculations – New option: Shipping to profit – Percentage.
  • Dev – Orders – Admin order edit – Meta box …