WooCommerce Cost of Goods Sold: Product Cost and Profit Calculator
WooCommerce can record cost of goods sold, commonly called COGS, against products and orders. But a product-cost field is only the first part of a useful profit calculation. It does not automatically include payment fees, outbound shipping, fulfilment, advertising, returns, or business overhead.
This guide shows how to enable WooCommerce COGS, what to enter as product cost, and how to turn that data into gross profit, contribution profit, and a more complete view of store profitability.
Quick answer: On WooCommerce 10.3 or later, go to WooCommerce > Settings > Advanced > Features, enable Cost of Goods Sold, and save. Enter a cost for every simple product and variation. For each order, gross profit is net product sales minus COGS. To judge what the order really contributed, also subtract shipping, fulfilment, payment fees, returns, and the advertising cost tied to that sale.
How to Enable WooCommerce Cost of Goods Sold
To enable it:
- Confirm your store is running WooCommerce 10.3 or later.
- In WordPress, go to WooCommerce > Settings > Advanced > Features.
- Select Cost of Goods Sold and save your changes.
- Open Products and edit a product.
- Enter the unit cost in the Cost of goods field.
- For a variable product, review every variation. Variations can inherit a default cost or use their own cost.
Do not stop after updating your top seller. A product with a missing cost produces a missing or overstated margin. Work through every active product and variation, then add cost entry to the process for launching a new SKU.
What Should WooCommerce Product Cost Include?
The WooCommerce field stores one amount per unit. Your first job is to define what that amount represents and use the definition consistently.
For a useful product gross margin, start with:
- The supplier or manufacturing cost per unit
- Direct production labour, if you manufacture the item
- Inbound freight allocated to the unit
- Import duties and tariffs allocated to the unit
- Other direct costs required to get the item into saleable inventory
That is often called the landed product cost. If a unit costs $18 from the supplier, attracts $3 in inbound freight and $3 in duties, its landed product cost is $24.
Keep costs such as outbound shipping, pick-and-pack fees, payment processing, advertising, refunds, and overhead visible as separate lines. They still affect profit, but separating them lets you distinguish product margin from the amount an order contributes after it is sold and delivered.
Accounting treatment can vary by business and jurisdiction. Agree on the method with your bookkeeper or accountant, especially if you carry inventory or allocate freight and production overhead.
WooCommerce COGS Formula
Use net product sales rather than the order total that includes customer-paid shipping or tax.
COGS = Unit product cost × Quantity sold
Gross profit = Net product sales − COGS
Gross margin = Gross profit ÷ Net product sales × 100
Gross margin answers a product-pricing question: after the direct product cost, how much of the sale remains?
It does not answer whether the order, channel, or whole business made money. For that, continue down the margin waterfall:
Contribution profit = Net product sales − COGS − outbound shipping − fulfilment − payment fees − return cost − allocated ad cost
Operating profit = Contribution profit − allocated operating expenses
Operating expenses include costs such as payroll, software, rent, insurance, and professional services. A true net-profit figure normally needs your complete accounting records, not WooCommerce order data alone.
WooCommerce Product Cost and Profit Calculator Example
Assume a customer buys one product:
| Calculation line | Amount |
|---|---|
| Listed product price | $80.00 |
| Discount | −$5.00 |
| Net product sales | $75.00 |
| Landed product cost | −$24.00 |
| Gross profit | $51.00 |
| Gross margin | 68.0% |
| Payment fee | −$2.25 |
| Outbound shipping | −$7.00 |
| Packaging and fulfilment | −$3.50 |
| Allocated ad cost | −$17.00 |
| Contribution profit | $21.25 |
| Contribution margin | 28.3% |
The WooCommerce product cost captures the $24 landed cost. It does not make the remaining $29.75 of order costs disappear. Looking only at the 68% gross margin would make this order appear much more profitable than the 28.3% contribution margin shows.
If the business allocates another $8 of payroll, software, and overhead to this order, the operating profit becomes $13.25. That is why “profit” needs a clear label: gross, contribution, and operating profit answer different questions.
Does WooCommerce Show Profit in Analytics?
Not from the core COGS feature today. WooCommerce records product and order cost data, but its official documentation states that core COGS does not currently integrate with WooCommerce Analytics.
You have three practical options:
| Approach | What it does well | Main limitation |
|---|---|---|
| WooCommerce core COGS | Stores product costs and order-level COGS without a separate plugin | Does not add core COGS to WooCommerce Analytics or create a complete P&L |
| WooCommerce Cost of Goods extension | Adds cost, profit, and average-profit reports inside WooCommerce Analytics | Still focuses on data available inside WooCommerce |
| Connected ecommerce profit tracker | Combines store data with ads, shipping, payments, returns, accounting, and expenses | Requires connections, accurate source data, and usually a paid plan |
Do You Need a Cost of Goods Product Cost & Profit Calculator for WooCommerce Plugin?
People searching for cost of goods product cost & profit calculator for WooCommerce usually have two different needs:
- You need somewhere to enter product cost. WooCommerce 10.3+ core can now do this.
- You need profit reports and calculations. Core COGS alone does not provide complete profit reporting in WooCommerce Analytics.
If your only goal is to save unit costs, start with the core feature. If you want reports inside the WordPress admin, compare a maintained reporting extension against your needs. Running core COGS and another COGS plugin together can create two cost totals, so choose one source of truth rather than entering the same cost twice.
Before installing any third-party plugin, review its recent updates, compatibility, support, and security history. A search-result title is not enough evidence that a plugin is the right long-term source for financial data.
Why WooCommerce Profit Can Still Be Wrong
Check these issues before trusting the result:
- Missing product or variation costs. A zero cost can turn an unknown margin into an apparently excellent one.
- Old costs on new orders. Supplier price, freight, and duty changes need to be reflected in your current unit cost.
- Existing orders using historical cost. WooCommerce stores order-item cost data, so changing a product cost later does not rewrite the cost already saved on an earlier order.
- Tax and customer-paid shipping counted as product revenue. Use net product sales for product-margin calculations.
- Refunds ignored. Revenue and related costs need to be handled consistently when an order is partially or fully refunded.
- Gross margin labelled as net profit. Product cost is not the only cost of running the business.
If the number looks unusually high, the first question should be “which costs are missing?” rather than “how do we spend the extra profit?”
How Nummbas Uses WooCommerce COGS
Nummbas can sync orders, products, variations, inventory, and product cost from WooCommerce 10.3+ when native COGS is enabled, or from a compatible third-party COGS source.
That cost data powers product-margin views. When a product cost is missing, Nummbas shows a missing-cost state instead of silently treating the product as free. Connecting payment, shipping, ad, return, accounting, and expense sources adds the context required for contribution profit and a fuller business view.
WooCommerce data by itself still cannot prove net profit. Complete net margin depends on complete cost and accounting data, whether those costs arrive through an integration or are entered manually.
WooCommerce COGS FAQs
Does WooCommerce have cost of goods sold?
Yes. WooCommerce 10.3 and later includes a native COGS feature that you can enable under WooCommerce > Settings > Advanced > Features.
How do I calculate profit on a WooCommerce product?
Subtract the product's unit cost from its net selling price to get gross profit. Divide gross profit by net selling price and multiply by 100 to get gross margin. Subtract order-level shipping, fulfilment, fees, returns, and ad cost to calculate contribution profit.
Does WooCommerce COGS include shipping?
WooCommerce stores the product cost amount you enter. It does not automatically add your outbound shipping or other external costs to that field. Define your landed product-cost method, enter it consistently, and track outbound costs separately.
Can WooCommerce calculate net profit?
WooCommerce can supply order and product data, but a defensible net-profit calculation also needs operating expenses and other costs that usually live in accounting, advertising, payment, shipping, and fulfilment systems.
Build the full WooCommerce profit picture
Use these guides to move from a product-cost field to accurate product, order, and business decisions.
WooCommerce Analytics Guide
See what the built-in reports cover and where external business data is still needed.
Ecommerce COGS Mistakes
Define landed cost correctly and avoid product margins built on missing expenses.
Ecommerce Contribution Margin
Move beyond gross margin to the money left after delivery and acquisition costs.
How to Calculate Ecommerce Profit Margin
Compare gross, contribution, operating, and net margin with formulas and examples.