---
title: Why is a percentage fee calculated before the cart discount?
description: "Pricepep takes percentage fees from the cart subtotal: after product pricing rules, before cart discounts and coupons, without shipping. What you can do."
url: "https://pricepep.com/docs/why-is-a-percentage-fee-calculated-before-the-cart-discount/"
updated: "2026-12-02"
category: FAQ
---

# Why is a percentage fee calculated before the cart discount?

Because a **Percentage fee** is taken from WooCommerce's cart subtotal: the product prices after Pricepep's product pricing rules, before cart discounts and coupons, and without shipping. There's no setting to change this base.

Example: cart $200, cart discount $20, shipping $10, **Percentage fee** 2:

|  | Amount |
| --- | --- |
| Cart subtotal | $200.00 |
| Fee 2% of $200 | $4.00 |
| Cart discount | −$20.00 |
| Shipping | $10.00 |
| Total | $194.00 |

Tax: when fees are not taxable (**Tax class** = **Not Taxable**), the base includes tax; when they're taxable, it doesn't, and tax is added to the fee itself. See [checkout fees and tax](/docs/checkout-fees-and-tax/).

## What can I do?

- Use a **Fixed fee** if the exact base matters.
- Product pricing rules lower the subtotal, so a product discount does reduce the fee; only cart discounts and coupons don't.
- Developers can change the fee amount with the `rp_wcdpd_checkout_fee_amount` filter; see the [filter reference](/docs/filter-reference/).

## Related articles

- [Checkout fees: add surcharges in WooCommerce](https://pricepep.com/docs/checkout-fees/)
- [Checkout fees and tax in Pricepep](https://pricepep.com/docs/checkout-fees-and-tax/)
- [Fee or discount by payment method in WooCommerce](https://pricepep.com/docs/fee-by-payment-method/)
- [Cart discounts: automatic discounts in the WooCommerce cart](https://pricepep.com/docs/cart-discounts/)

All articles in [FAQ](https://pricepep.com/docs-category/faq/)
