> ## 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.

# Units Sold: Total Product Quantity Sold

> Track total product units sold across all orders. Monitor inventory movement, basket sizes, and product demand with this e-commerce metric.

<Tip>
  The total quantity of individual product units sold across all orders in the selected period.
</Tip>

## Formula

<Info>
  **Units Sold** = **SUM** ( Quantity ) **FOR EACH** Line Item
</Info>

### Formula Components

| Metric        | Definition                                     |
| ------------- | ---------------------------------------------- |
| **Quantity**  | Number of units for each line item in an order |
| **Line Item** | Individual product entry within an order       |

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

***

## Example

Your store sold **8,742 units** across 2,914 orders in March:

| Product Category | Units | % of Total |
| ---------------- | ----- | ---------- |
| Apparel          | 4,120 | 47%        |
| Accessories      | 2,621 | 30%        |
| Footwear         | 2,001 | 23%        |

***

## How It Works

Units Sold sums the quantity field from every line item across all completed orders. If a customer orders 3 t-shirts and 2 hats in one transaction, that order contributes 5 units to this metric.

***

## When to Use

| Scenario              | Action                                               |
| --------------------- | ---------------------------------------------------- |
| Inventory planning    | Forecast stock needs based on unit velocity          |
| Basket size analysis  | Combine with Orders to calculate units per order     |
| Product demand trends | Compare unit sales across categories or time periods |
| Promotion impact      | Measure volume lift from sales or bundles            |

***

## Related Metrics

| Metric                                                                                          | Relationship                                                    |
| ----------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| [Orders](/reference/metrics/orders/counts/orders)                                               | Number of transactions (this metric sums their line quantities) |
| [Units Per Order](/reference/metrics/orders/counts/units-per-order)                             | Units Sold ÷ Orders                                             |
| [New Customer Units Sold](/reference/metrics/orders/counts/new-customer-units-sold)             | Units from first-time buyers only                               |
| [Returning Customer Units Sold](/reference/metrics/orders/counts/returning-customer-units-sold) | Units from repeat customers only                                |

[See all Order Counts metrics →](/reference/metrics/orders/counts)
