Skip to content

Black Friday 50% off your first year on all premium plugins and the Suite.

See the deals

Product cost fields

The Cost of goods field on simple products and variations, the Quick Edit and Bulk Edit cost options, the Profit tab and the cost history.

2 min read · Updated 4 November 2026

Simple and external products

Edit the product and look in Product data › General, below the price fields. The field is labelled Cost of goods followed by your currency symbol.

  • Enter the cost of one unit. The plugin multiplies it by the quantity sold on each order.
  • Negative values are saved as zero. Leave the field empty for “no cost”, which is counted as zero and flagged.
  • The value is stored in the product meta field _wc_cost_of_goods.

Variable products

A variable product has the same Cost of goods field on its General tab. It is the default for every variation. Each variation also has its own Cost of goods field in its pricing row; its placeholder shows the parent cost. Leave a variation empty to use the parent cost, or fill it in to override it.

Grouped products

Grouped products are sold as their individual child products, so give each child product its own cost. The product list shows a dash for the grouped product itself.

Quick Edit and Bulk Edit

  • Quick Edit in the product list has a Cost box for that product.
  • Bulk actions › Edit has a Cost choice: — No change —, Change to:, Increase or Decrease existing cost by (%), Increase or Decrease existing cost by (fixed amount), or Remove cost. Increases and decreases only apply to products that already have a cost.

The Profit tab and cost history

The Profit tab on the product edit screen shows, for the product or each variation, the price excluding tax, the cost, profit per unit and margin, and the 10 most recent cost changes with the old and new cost and who made the change. Every change is logged in the {prefix}wc_product_cost_history table.

What changing a cost does

Orders keep the unit costs they were first calculated with, so a new cost does not rewrite old orders. To apply current costs, use Recalculate with current costs on one order or Recalculate all orders on the dashboard.

Costs from another source

The plugin reads only its own field, not WooCommerce’s built-in Cost of Goods Sold value or another plugin’s cost field. A developer can supply costs from elsewhere with the wc_profit_calculator_product_cost filter.

Did this answer the question? No — open a support request