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

# Subtotal: Order Subtotal Amount

> Track order subtotal for your Shopify store. Measure product value before shipping, taxes, and adjustments.

<Tip>
  Subtotal measures the total product value in orders before shipping, taxes, discounts, and other adjustments are applied.
</Tip>

## Formula

<Info>
  **Subtotal** = **SUM** ( Order line item prices × quantities )
</Info>

### Formula Components

| Metric               | Definition                         |
| -------------------- | ---------------------------------- |
| **Line Item Prices** | Product prices from Shopify orders |
| **Quantities**       | Units ordered per line item        |

| Metadata        |                                     |
| --------------- | ----------------------------------- |
| **Type**        | Currency                            |
| **Data Source** | [Shopify](/sources/catalog/shopify) |
| **Aggregation** | Sum                                 |

***

## Example

Your Shopify store processes orders with a combined subtotal of **\$180,000**.

| Order     | Products | Subtotal      |
| --------- | -------- | ------------- |
| #1001     | 3 items  | \$150         |
| #1002     | 1 item   | \$75          |
| #1003     | 5 items  | \$280         |
| ...       | ...      | ...           |
| **Total** |          | **\$180,000** |

***

## How It Works

Subtotal is pulled directly from your Shopify order data. It represents the pure product value before any modifications. Shipping, taxes, discounts, and refunds are applied on top of subtotal to arrive at total and net revenue.

***

## When to Use

| Scenario               | Action                                  |
| ---------------------- | --------------------------------------- |
| Product value analysis | Track pure product sales                |
| Discount impact        | Compare subtotal to net revenue         |
| AOV breakdown          | Understand product value per order      |
| Shipping analysis      | Compare subtotal to total with shipping |

***

## Related Metrics

| Metric                                                                   | Relationship                     |
| ------------------------------------------------------------------------ | -------------------------------- |
| [Gross Revenue](/reference/metrics/orders/revenue/gross-revenue)         | Subtotal plus shipping and taxes |
| [Net Revenue](/reference/metrics/orders/revenue/net-revenue)             | After discounts and refunds      |
| [Discount Amount](/reference/metrics/orders/adjustments/discount-amount) | Reduces subtotal to net          |

[See all Revenue metrics →](/reference/metrics/orders/revenue)
