> For the complete documentation index, see [llms.txt](https://docs.yaycommerce.com/yaypricing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yaycommerce.com/yaypricing/features/product-pricing/tiered-pricing.md).

# Tiered Pricing

Tiered pricing is a strategy where the price of a product or service changes based on quantity purchased or usage level. The more a customer buys or uses, the lower the price per unit, but discounts are applied in discrete tiers, not continuously.

<figure><img src="/files/e27L6s9quDOKr2PtEj3w" alt=""><figcaption><p>Tiered pricing rule setting</p></figcaption></figure>

1. The Pricing ranges option allows you to import and export your pricing table to setting.
2. The **Count quantity by** option allows you to choose how the rule will apply to different types of product quantities.

<figure><img src="/files/CceDJWPzPRlS1D51dwrY" alt=""><figcaption><p>Count quantity by options</p></figcaption></figure>

* The **All together** option calculates the total quantity of all items in the cart, regardless of product type. It applies the bulk discount based on the combined total quantity. For example, 5 units of Product A and 3 of Product B would total 8 units, triggering the discount
* The **Item quantity in each cart line** option calculates discounts based on the quantity of each product in separate cart lines. Each product's discount is applied independently. For example, 5 units of Product A and 3 units of Product B will receive discounts based on their individual quantities
* The **Each single product/variable product** option treats each product variant (e.g., size, color) as separate items for quantity calculation. Discounts apply based on the quantity of each variant. For example, 3 units of "Small" and 4 units of "Medium" will receive separate discounts based on their individual quantities.

3. **Apply discount to only first matching product** option allows you applying the rule only to the first matching product in the cart.<br>

Example 1: Buy 1 to 5 units for a 20% discount, and 6 or more units for a 50% discount. The rule applies only to the first matching product in the cart.

<figure><img src="/files/lCHVIgb9qghF8d7C7RZ1" alt=""><figcaption><p>Rule setting</p></figcaption></figure>

<figure><img src="/files/Omsk0lc5BI4wyupd90r3" alt="Result of ex1 tiered pricing rule "><figcaption><p>Result</p></figcaption></figure>

Example 2: Buy 1 to 5 units for a 20% discount, and 6 or more units for a 50% discount. The rule applies to all items in the cart only if the cart subtotal is greater than $100.

<figure><img src="/files/gnkP2AqFfYOzEETFWaC8" alt=""><figcaption><p>Rule setting</p></figcaption></figure>

<figure><img src="/files/HWFqmbPZeEJpvdILBUAv" alt=""><figcaption><p>Rule setting</p></figcaption></figure>

<figure><img src="/files/AnfHPSBQKqDSGXXsS16O" alt="Result of ex2 Tiered pricing rule "><figcaption><p>Result</p></figcaption></figure>
