WooCommerce Price
price · margin · VAT · splitAdvanced WooCommerce pricing with Italian VAT (4%, 10%, 22%, exempt): two modes, live results and a PHP snippet for functions.php.
- Selling price: start from the public price (VAT inclusive), cost, optional percentage discount, payment fees (percentage and fixed per order), and seller-paid shipping.
- From cost + margin: derive net and gross price using your target margin and VAT rate.
Calculation mode
Selling price
Retail price (incl. VAT)
€
Product / service cost
€
Discount applied
%
VAT rate
Additional fees
Payment gateway fee
%
Fixed fee per order
€
Shipping paid by seller
€
From cost to price
Product cost (excl. VAT)
€
Target margin
%
VAT rate to apply
Calculating…
How the calculation works
- Selling price mode: VAT is split using the selected rate on the price after discount. Fees are applied to the post-discount gross total. Net profit is net price after discount − (cost + fees + shipping). Margin % = profit / net price after discount; markup % = profit / cost.
- Cost + margin mode: net price = cost / (1 − margin/100); gross price = net price × (1 + VAT/100).
- The PHP block sets prices and tax status consistent with WooCommerce (for 0% VAT it uses non-taxable status and an empty tax class; always match your store’s tax classes).
Useful for price lists, quotes and product pages before publishing in WooCommerce.