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

# Other COGS: User-Defined Cost of Goods Sold

> Track user-defined cost of goods sold from order cost entries. Combine with product COGS to calculate Total COGS for accurate margin analysis.

<Tip>
  User-defined cost of goods sold from order cost entries with category COGS. Combined with product COGS to calculate Total COGS.
</Tip>

## Formula

<Info>
  **Other COGS** = **SUM** ( Order Cost Entries ) **WHERE** category = COGS
</Info>

### Formula Components

| Metric                 | Definition                                      |
| ---------------------- | ----------------------------------------------- |
| **Order Cost Entries** | Cost entries you've configured in Upstack Costs |
| **category = COGS**    | Filters to entries categorized as cost of goods |

| Metadata        |                                            |
| --------------- | ------------------------------------------ |
| **Type**        | Currency                                   |
| **Data Source** | [Upstack Costs](/dashboard/settings/costs) |
| **Aggregation** | Sum                                        |

***

## Example

Your store has **\$12,400** in product-level COGS from Shopify variants, plus additional costs you've configured:

| Cost Entry          | Monthly Total |
| ------------------- | ------------- |
| Packaging materials | \$2,150       |
| Quality inspection  | \$890         |
| Import duties       | \$1,460       |
| **Other COGS**      | **\$4,500**   |
| Product COGS        | \$12,400      |
| **Total COGS**      | **\$16,900**  |

***

## How It Works

Other COGS captures cost of goods that aren't stored on Shopify product variants. Configure these as order cost entries with the COGS category. They're summed across all orders and combined with product-level COGS to calculate Total COGS—giving you a complete picture of goods costs for margin analysis.

***

## When to Use

| Scenario                 | Action                                |
| ------------------------ | ------------------------------------- |
| Tracking packaging costs | Add as COGS cost entry                |
| Including import duties  | Capture costs not in product variants |
| Calculating true margins | Combine with COGS for Total COGS      |
| Analyzing cost structure | Break down COGS components            |

***

## Related Metrics

| Metric                                                                                        | Relationship                             |
| --------------------------------------------------------------------------------------------- | ---------------------------------------- |
| [COGS](/reference/metrics/orders/cogs/cogs)                                                   | Product-level cost from Shopify variants |
| [Total COGS](/reference/metrics/orders/cogs/total-cogs)                                       | COGS + Other COGS combined               |
| [New Customer Other COGS](/reference/metrics/orders/cogs/new-customer-other-cogs)             | Other COGS for first-time buyers         |
| [Returning Customer Other COGS](/reference/metrics/orders/cogs/returning-customer-other-cogs) | Other COGS for repeat buyers             |
| [CM1](/reference/metrics/orders/contribution-margin/cm1)                                      | Uses Total COGS in calculation           |

[See all COGS metrics →](/reference/metrics/orders/cogs)
