Skip to main content
Agency Program Hosting from 10% off. A dedicated account manager. Priority support. Built for growing agencies. Hosting from 10% off, a dedicated account manager and priority support for growing agencies. Speak to the team Join free
COG

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

v4.2.5
by WPFactory · 4.7 (41 reviews)

Unlock detailed insights into products profitability, calculate COGS & profit margins, and get a better financial analytics insights with our Cost …

8K+ active installs Updated Nov 30, 2026 Tested to 7.1.5
Try Demo Download
Pre-installed Ready in ~10s No card

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

The Cost of Goods for WooCommerce plugin is highly recommended for WooCommerce store owners who want to accurately calculate their profit. It offers customizable product costs, enhanced admin visibility, smooth data import/export, and bulk edit functionality, among other features. Customers have praised the plugin for its effectiveness and the excellent support provided by the team.

Frequently asked questions

What is the purpose of the Cost of Goods Sold (COGS) plugin?
The plugin helps WooCommerce store owners understand their financial health by providing detailed insights into product profitability, calculating COGS, and profit margins. It offers a holistic overview of financial reporting for products, categories, or the entire store over specific time frames.
What are some key features for managing product costs?
Users can define customizable costs of goods for each product and assign versatile costs to individual variations or all variations collectively. The plugin also allows for smooth data import/export of product costs via CSV files using standard WooCommerce tools.
How does the plugin enhance administrative visibility and management?
It adds sortable columns in the WooCommerce admin section to provide insights into product/order cost and profit directly in product and order lists. Additionally, it offers bulk edit functionality to modify product costs, prices, and stock from a dedicated page.

Changelog

4.2.5 – 30/11/2026

  • Fix – Product Add-Ons – Removed an order totals recalculation that could set the order total to 0 before items were saved, causing orders to skip payment processing.

4.2.4 – 18/11/2026

  • Fix – Product Add-Ons costs now save with the global add-on and product edit screen nonce actions.
  • Dev – Upgraded wpfactory/wpfactory-admin-menu (v1.0.8 => v1.1.4).
  • Dev – Upgraded wpfactory/wpfactory-cross-selling (v1.0.9 => v1.1.7).
  • Dev – Upgraded wpfactory/wpfactory-promoting-notice (v1.0.6 => v1.0.7).
  • Dev – Upgraded wpfactory/wpfactory-key-manager (v1.0.8 => v1.1.1).
  • WC tested up to: 11.3.

4.2.3 – 02/10/2026

  • Dev – Products – Improved Last update datetime description.

4.2.2 – 02/10/2026

  • Dev – Products – Added new option to save the last update date and time (Y-m-d H:i:s) in _alg_wc_cog_last_update_datetime meta.

4.2.1 – 18/09/2026

  • Security – minor hardening.
  • Tested up to: 7.1.
  • WC tested up to: 11.1.

4.2.0 – 24/08/2026

  • Fix – Fixed Analytics Stock cost/profit totals cache.
  • WC tested up to: 11.0.

4.1.9 – 14/07/2026

  • Fix – Fixed Order Extra costs.
  • Fix – Fixed WooCommerce product import with incorrect prefix meta.

4.1.8 – 13/07/2026

  • Fix – Fixed Cost Archive display.
  • Fix – Fixed Add Stock variation history.
  • Fix – Fixed Add Stock updating on variations.

4.1.7 – 09/07/2026

  • Fix – General security improvements.

4.1.6 – 30/06/2026

  • Fix – Remove external link to woo.com.
  • Fix – Fixed nonce, escaping and validation checks.
  • Fix – Prefix updated to wpfcogs.
  • WC tested up to: 10.9.

4.1.5 – 08/06/2026

  • Fix – Fixed I18n issues on functions.
  • Fix – Fixed nonce, escaping and validation checks.
  • Fix – Removed unnecessary load_plugin_textdomain() function.
  • Fix – Changed Short Description from readme.txt.
  • Fix – Code refactoring.
  • Fix – Fixed WordPress.WP.I18n.MissingTranslatorsComment issues.
  • Dev – Moved translations to languages folder.

4.1.4 – 22/05/2026

  • Update $version property.

4.1.3 – 22/05/2026

  • Tested up to: 7.0.

4.1.2 – 08/05/2026

  • Fix – Analytics – Fixed data inflation with the option “Orders > Extra Costs”.

4.1.1 – 06/05/2026

  • Fix – Improved sanitization in product cost/profit shortcodes.
  • WC tested up to: 10.7.

4.1.0 – 12/03/2026

  • Dev – Improved deploy mechanism.
  • Fix – Fixed .gitattributes.

4.0.9 – 03/03/2026

  • Fix – Fixed “Analytics > Products” report.

4.0.8 – 13/02/2026

  • Dev – Orders – Added options to setup the cost and profit columns width.
  • WC tested up to: 10.5.

4.0.7 – 02/02/2026

  • Fix – Analytics – Products – Prevented possible inconsistency on profit total.

4.0.6 – 28/01/2026

  • Orders – Improved “Extra Costs: From Meta” description.

4.0.5 – 23/01/2026

  • WC tested up to: 10.4.
  • Dev – Updated Key Manager library to version 1.0.8.
  • Improved Settings text from Analytics and Multicurrency sections.

4.0.4 – 22/12/2025

  • Updated cross-selling library to version 1.0.9.

4.0.3 – 17/12/2025

  • Updated cross-selling library to version 1.0.7.

4.0.2 – 09/12/2025

  • Dev – Products – Added new option to normalize cost while importing CSV.
  • Tested up to: 6.9.

4.0.1 – 01/12/2025

  • Dev – Tools – Added new option to filter bulk edit products by attributes.

4.0.0 – 20/11/2025

  • Fix – Trying to avoid get_id() on bool error.

3.9.9 – 20/11/2025

  • Dev – Advanced – Added the woocommerce_update_order hook to the option Order calculation hooks.

3.9.8 – 10/11/2025

  • Dev – Products – Last Update Date now being saved as _wpfcogs_last_update_date meta.

3.9.7 – 07/11/2025

  • Dev – Products – Added new option to set a last update date template.
  • Dev – Products – Added new option to display a last update date as cost input description on admin product pages.
  • Dev – Products – Improved Standards on Cost Archive code.

3.9.6 – 06/11/2025

  • Fix – Products – Improved reliability of Cost and Add Stock fields on Quick end Bulk Edit.
  • WC tested up to: 10.3.

3.9.5 – 29/10/2025

  • Fix – Add stock – Fixed Uncaught TypeError: Cannot access offset of type string.

3.9.4 – 22/10/2025

  • Fix – Add stock – Fixed Uncaught TypeError: Cannot access offset of type string.

3.9.3 – 17/10/2025

  • Fix – Products – Cost field was not working with the “Bulk actions > Edit” option.

3.9.2 – 22/09/2025

  • Fix – Analytics – Improved stock calculation.

3.9.1 – 17/09/2025

  • Fix – Analytics – Improved stock calculation.
  • Fix – “Analytics > Categories” now considering Multicurrency section.
  • Fix – Analytics – Fixed Multicurrency option with the Overview and Variations sections.
  • Dev – Analytics – Stock – New option added to generate the CSV with the products selected by the Cost of Goods filter.

3.9.0 – 13/09/2025

  • Fix – Fixed error where some orders could have the cost set as zero.

3.8.9 – 12/09/2025

  • Fix – Advanced – Ignored order profit on the option “Avoid empty order metadata from being saved to database”.
  • Fix – “Analytics > Products” section now considering Multicurrency section.

3.8.8 – 09/09/2025

  • Fix – Analytics – Improved stock calculation.

3.8.7 – 04/09/2025

  • Fix – Fixed possible php warning on order updating.
  • Dev – Improved prevention of possible duplicate order meta.

3.8.6 – 03/09/2025

  • Dev – Improved prevention of possible duplicate order meta.

3.8.5 – 29/08/2025

  • Dev – Added wpfcogs_update_order_items_costs_validation filter.

3.8.4 – 28/08/2025

  • Fix – Product profit was being calculated wrong on admin product page and Analytics Stock report if prices included taxes.
  • Dev – Analytics – Replace “Consider stock” option by adding new columns considering quantity.
  • Dev – Analytics – Added extra stock data option with product category, price, total price, total stock, total products, total average cost, price, and profit.

3.8.3 – 19/08/2025

  • Dev – Improve profit sanitization to avoid possible errors with dirty data on database.

3.8.2 – 19/08/2025

  • Dev – Added Recommendations box on settings page via Cross-selling library.
  • WC tested up to: 10.1.

3.8.1 – 11/08/2025

  • Fix – Orders – Fixed admin order page sorting by ID and Date.

3.8.0 – 04/08/2025

  • Dev – Compatibility – Added option to add Cost column to WBW Product Table plugin.
  • Dev – Compatibility – Added option to add Profit column to WBW Product Table plugin.

3.7.9 – 31/07/2025

  • Fix – Fixed possible compatibility error with the plugin Sugar Calendar: “Too few arguments to function WPFCOGS_Bulk_Edit_Tool::disable_screen_option_on_automatically_tab()”.
  • WC tested up to: 9.9.

3.7.8 – 23/07/2025

  • Dev – Extra costs from meta – Added option to treat extra costs from meta as profit instead of cost.
  • Dev – Extra costs from meta – Code refactoring.
  • Dev – Minified js and css automatically generated.

3.7.7 – 12/07/2025

  • Fix – Analytics – Fixed inflated analytics.

3.7.6 – 23/06/2025

  • Dev – Improved WPFactory menu.
  • Dev – Compatibility – WCFM – Added new option to add the cost input to the frontend manager.
  • Dev – Compatibility – WCFM – Added new option to Show the total cost and profit on the Vendor’s Sales by Date report.

3.7.5 – 18/06/2025

  • Fix – Add Stock – Quick edit couldn’t work if the Bulk Edit was disabled.
  • Dev – Improved WPFactory menu.

3.7.4 – 17/06/2025

  • Fix – Add Stock – Fixed possible bug with the quick edit.
  • Dev – Add Stock – Added new option to calculate the cost based on the Cost decimals option.
  • Dev – Improved the way product cost meta is saved.

3.7.3 – 11/06/2025

  • WC tested up to: 9.9.

3.7.2 – 09/05/2025

  • Fix – Analytics – Stock – Cost and profit total was not working in some cases.
  • Dev – Now triggering updated_post_meta on Tools > Import even if From meta value is the same as new one.

3.7.1 – 08/05/2025

  • Fix – Fixed vulnerability.

3.7.0 – 28/04/2025

  • Dev – Add Stock – Added a remove button on the “Add stock feature” to delete a specific date from the history.

3.6.9 – 18/04/2025

  • Fix – Translation loading was triggered too early.
  • Dev – Added the order item meta profit as _wpfcogs_item_profit.
  • Dev – Orders – Added new option to improve admin new order emails by showing a detailed info of profit and cost for each item.
  • Tested up to: 6.8.
  • WC tested up to: 9.8.

3.6.8 – 26/03/2025

  • Dev – Analytics – Added cost and profit options for the Variations tab.

3.6.7 – 19/03/2025

  • Dev – Payment Gateways – Added option to set a fixed profit.
  • Dev – Payment Gateways – Option changed from wpfcogs_gateway_costs_enabled to wpfcogs_gateways_values_enabled.
  • Dev – Payment Gateways – Code refactored.

3.6.6 – 14/03/2025

  • Fix – Compatibility – WPC Product Bundles – Bundle cost was not being excluded from order item.

3.6.5 – 11/03/2025

  • Dev – Key Manager library – Changed namespace from v5\PucFactory to v5p4\PucFactory so it won’t conflict with other plugins loading possible older versions of Puc.
  • WC tested up to: 9.7.

3.6.4 – 25/02/2025

  • Dev – Multicurrency – Added new option to convert Extra Costs From Meta.

3.6.3 – 11/02/2025

  • Fix – Orders – Extra costs – Fixed possible error “Call to a member function get_meta() on false” on a admin order page.
  • Dev – Improved Composer loading.

3.6.2 – 28/01/2025

  • Fix – Tools – Orders recalculation – Fixed date options.
  • Dev – Tools – Orders recalculation – New option added to override item costs on recalculation.
  • WC tested up to: 9.6.

View older changelog entries

Try other plugins

Yoast SEO icon

Yoast SEO

4.8 · 10M+ installs

Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the Yoast SEO…