> For the complete documentation index, see [llms.txt](https://help.dollarlabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.dollarlabs.io/dollarback-store-credit/settings/cashback-calculation.md).

# Cashback Calculation

The first card on **DollarBack admin → Settings** defines "what order amount cashback is based on" and sets "any caps or rounding rules". Everything here applies to every cashback program at once, and the same base feeds percentage referral rewards.

<figure><img src="https://2844543096-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcVBfwy7Yj4tU8TsxkHEr%2Fuploads%2Fgit-blob-bff40884c8f3f13152c42648a3eb009f208b8770%2Fdb-p2-es-cashback-calculation-annotated.png?alt=media" alt="The expanded Cashback Calculation card: Base cashback on with the options Order Total and Order Subtotal, a Maximum cashback per order field set to $0, and two checkboxes, Include shipping costs in cashback calculation and Round up cashback to the nearest whole number." width="560"><figcaption><p>This card sets the order amount that every program calculates cashback from. In this example store, Order Subtotal is selected and shipping is not included.</p></figcaption></figure>

## Base cashback on

| Option                    | Effect                                                            |
| ------------------------- | ----------------------------------------------------------------- |
| **Order Total** (default) | "Calculate cashback from the full order amount, including taxes." |
| **Order Subtotal**        | "Calculate cashback from the subtotal before taxes and shipping." |

This is usually the single most impactful setting on the page: switching between the two changes every program's payout on tax-charging stores.

## Maximum cashback per order

A hard cap on the total cashback one order can earn, in your store currency. "Cap the total cashback awarded per order. Set to 0 for no limit." Default: 0 (no limit).

When the cap is hit, all matching programs and lines are **scaled down proportionally**; nothing is dropped outright. That keeps the per-line attribution intact, which matters later for refund clawbacks.

## Options

* **Include shipping costs in cashback calculation** (default: on): adds shipping charges into the base. "When unchecked, shipping charges are excluded from the calculated amount." It applies in both modes. In **Order Subtotal** mode with the option on, each line takes its share of the shipping, so multi-line orders and per-product programs include it too.
* **Round up cashback to the nearest whole number** (default: off): rounds each credit up as the last step of the calculation, after the **Maximum cashback per order** cap (e.g. $8.19 becomes $9.00). Popular for keeping widget messaging clean ("Earn $9 back").

{% hint style="info" %}
**Want Subtotal mode with no shipping?** Turn **Include shipping costs** off. It's on by default, so Order Subtotal includes shipping until you turn it off.
{% endhint %}

{% hint style="info" %}
An order that gives more than one credit (for example an order goal plus a percentage program) rounds each one up separately, so with **Round up** on the total can end up slightly above the cap.
{% endhint %}

## Verify it works

Place a test order with tax and shipping, then compare the credited amount in **Analytics → Activity** against your base choice. If it looks off, walk the full pipeline in [How cashback is calculated](https://help.dollarlabs.io/dollarback-store-credit/earning-cashback-programs/how-cashback-is-calculated.md); discounts, gift cards, and competing programs are the usual suspects, not this card.

## Related articles

* [How cashback is calculated](https://help.dollarlabs.io/dollarback-store-credit/earning-cashback-programs/how-cashback-is-calculated.md)
* [Special Order Types](https://help.dollarlabs.io/dollarback-store-credit/settings/special-order-types.md)
* [Set up purchase cashback](https://help.dollarlabs.io/dollarback-store-credit/earning-cashback-programs/set-up-purchase-cashback.md)
