> ## Documentation Index
> Fetch the complete documentation index at: https://storekit.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Delivery Fee in Discounts

> Choose whether the delivery fee is included in or excluded from a storekit discount calculation. Control how much customers save and protect your margins.

When creating a discount, you can choose whether the delivery fee is included in or excluded from the discount calculation. This setting affects how the discount amount is calculated and what the customer ultimately pays.

## How It Works

| Setting                  | Behaviour                                      | Best For                              |
| ------------------------ | ---------------------------------------------- | ------------------------------------- |
| **Include delivery fee** | Delivery fee is part of the discountable total | Maximising perceived customer savings |
| **Exclude delivery fee** | Discount applies to product total only         | Protecting delivery fee revenue       |

## Configuring the Setting

1. Go to **Discounts** in the sidebar
2. Click **Add Discount** or edit an existing discount
3. In the discount settings, choose whether to **include** or **exclude** the delivery fee
4. Click **Save**

## Impact on Percentage Discounts

This setting is most important for [percentage discounts](/guides/discounts/percentage-discounts), where it directly affects the calculated amount.

### Example

A 20% discount on an order with a £30 product total and a £5 delivery fee:

| Setting                  | Discountable Amount       | Discount (20%) | Customer Pays |
| ------------------------ | ------------------------- | -------------- | ------------- |
| **Include delivery fee** | £35 (products + delivery) | £7             | £28           |
| **Exclude delivery fee** | £30 (products only)       | £6             | £29           |

## Impact on Fixed Discounts

For [fixed discounts](/guides/discounts/fixed-discounts), this setting affects whether the delivery fee counts toward the order total when evaluating [minimum spend](/guides/discounts/minimum-spend-maximum-discount) requirements.

## Impact on Free Delivery Discounts

This setting does not affect [free delivery discounts](/guides/discounts/free-delivery), as those always remove the full delivery fee regardless.

<Tip>
  Excluding the delivery fee from discount calculations is a simple way to protect your delivery margin while still offering attractive discounts on products.
</Tip>
