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

# Gross Revenue: Product Sales Before Adjustments

> Track gross revenue from product sales before discounts and refunds. Use for margin calculations and understanding baseline product revenue.

<Tip>
  Revenue from product sales before subtracting discounts or refunds.
</Tip>

## Formula

<Info>
  **Gross Revenue** = **SUM** ( Product Line Item Prices )
</Info>

### Formula Components

| Metric                       | Definition                                                       |
| ---------------------------- | ---------------------------------------------------------------- |
| **Product Line Item Prices** | Original price of each product at time of sale, before discounts |

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

***

## Example

Your store generated **\$125,000** in gross revenue in March:

| Product Category | Gross Revenue | Share |
| ---------------- | ------------- | ----- |
| Apparel          | \$62,500      | 50%   |
| Accessories      | \$37,500      | 30%   |
| Footwear         | \$25,000      | 20%   |

After applying discounts (\$8,750) and processing refunds (\$3,125), your Net Revenue was \$113,125.

***

## How It Works

Gross Revenue sums the `grossSalePrice` field from each order—the total of all product line item prices at time of sale. This excludes shipping, taxes, discounts, and refunds, representing your theoretical maximum revenue if every order paid full price and no products were returned.

***

## When to Use

| Scenario                     | Action                                                |
| ---------------------------- | ----------------------------------------------------- |
| Calculating gross margin     | Compare against COGS to find product profitability    |
| Measuring discount impact    | Compare Gross vs Net Revenue to quantify promotions   |
| Tracking refund rates        | Divide refunds by Gross Revenue for return percentage |
| Forecasting baseline revenue | Use as the starting point for financial projections   |

***

## Related Metrics

| Metric                                                           | Relationship                        |
| ---------------------------------------------------------------- | ----------------------------------- |
| [Total Revenue](/reference/metrics/orders/revenue/total-revenue) | Includes shipping and taxes         |
| [Net Revenue](/reference/metrics/orders/revenue/net-revenue)     | Gross Revenue − Discounts − Refunds |
| [Average Order Value](/reference/metrics/orders/averages/aov)    | Revenue per order                   |
| [Orders](/reference/metrics/orders/counts/orders)                | Count of completed orders           |

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