---
title: How is unit cost calculated?
description: How unit cost is calculated on Happy Buyers
---

[Skip to content](https://knowledge.happycabbage.me/unit-cost#main-content)

English

Show submenu for translations

[![HappyCabbageLogo2024-3](https://knowledge.happycabbage.me/hs-fs/hubfs/HappyCabbageLogo2024-3.png?width=200&height=80&name=HappyCabbageLogo2024-3.png)](https://happycabbage.io/)

- [The Cabbage Patch Blog](https://7613181.hs-sites.com/en/blog)

Open main navigation

Close main navigation

- [The Cabbage Patch Blog](https://7613181.hs-sites.com/en/blog)
- English
  
  Show submenu for translations
- [Log in to Happy Buyers](https://restock.happycabbage.ai/login)

[Log in to Happy Buyers](https://restock.happycabbage.ai/login)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [Knowledge Base](https://knowledge.happycabbage.me/?hsLang=en)
2. [FAQs](https://knowledge.happycabbage.me/faqs?hsLang=en)

January 16, 2026

# How is unit cost calculated?

## We get this question a lot from users. Unit cost is calculated depending on what information is available from your packages, prioritized in the following order:

##### 1. Average unit cost of packages within the last 90 days

if data is not available then we check for this next:

##### 2. Average unit cost of packages on hand (inventory \> 0)

if data is not available then we check for this next:

##### 3. Unit cost of the most recent package

if not available then we use this data: 

##### 4. Unit cost as reported via the Product Catalog `/products` api (specifically for dutchie, varies for the other POSs)

 

### Example product data we checked for a 2g infused preroll blunt

1. Average cost last 90 days: **N/A** (because there are no packages within last 90 days)
2. Average cost on hand: **N/A** (because there no packages on hand)
3. Unit cost of the most recent package: **$4.64**
4. From Product Catalog `/products` api: **$17**

The final unit cost that is visible on Happy Buyers for this product is $4.64. If a new package were to come in tomorrow, the cost would change to that because we would then have a value for average 90 days.

 

 

If you have any further questions on how cost is calculated or what you can do to maintain clean data hygiene for tracking unit cost, reach out to [**support@happycabbage.io**](mailto:support@hapycabbage.io).

- [Getting started](https://knowledge.happycabbage.me/getting-started?hsLang=en#main-content)

    - [Account Setup](https://knowledge.happycabbage.me/getting-started?hsLang=en#account-setup)
    - [Navigating Happy Buyers](https://knowledge.happycabbage.me/getting-started?hsLang=en#navigating-happy-buyers)
    - [AI + Happy Buyers](https://knowledge.happycabbage.me/getting-started?hsLang=en#ai-happy-buyers)
- [Key workflows](https://knowledge.happycabbage.me/key-workflows?hsLang=en#main-content)

    - [Quicklinks](https://knowledge.happycabbage.me/key-workflows?hsLang=en#quicklinks)
- [Ordering](https://knowledge.happycabbage.me/ordering?hsLang=en#main-content)

    - [Overview](https://knowledge.happycabbage.me/ordering?hsLang=en#overview)
    - [Building orders](https://knowledge.happycabbage.me/ordering?hsLang=en#building-orders)
    - [Product lines](https://knowledge.happycabbage.me/ordering?hsLang=en#product-lines)
    - [Individual SKUs](https://knowledge.happycabbage.me/ordering?hsLang=en#individual-skus)
    - [Order management](https://knowledge.happycabbage.me/ordering?hsLang=en#order-management)
- [Product lines](https://knowledge.happycabbage.me/product-lines?hsLang=en#main-content)

    - [Overview](https://knowledge.happycabbage.me/product-lines?hsLang=en#overview)
    - [Creation and editing](https://knowledge.happycabbage.me/product-lines?hsLang=en#creation-and-editing)
    - [Order settings](https://knowledge.happycabbage.me/product-lines?hsLang=en#order-settings)
    - [Ordering](https://knowledge.happycabbage.me/product-lines?hsLang=en#ordering)
- [Reports](https://knowledge.happycabbage.me/reports?hsLang=en#main-content)

    - [Automated reports](https://knowledge.happycabbage.me/reports?hsLang=en#automated-reports)
    - [Inventory health](https://knowledge.happycabbage.me/reports?hsLang=en#inventory-health)
    - [KPI reports](https://knowledge.happycabbage.me/reports?hsLang=en#kpi-reports)
- [Org settings](https://knowledge.happycabbage.me/org-settings?hsLang=en)
- [FAQs](https://knowledge.happycabbage.me/faqs?hsLang=en)
- [POS integrations](https://knowledge.happycabbage.me/pos-integrations?hsLang=en)
- [Customer referral program](https://knowledge.happycabbage.me/customer-referral-program?hsLang=en)
- [Data security and compliance](https://knowledge.happycabbage.me/data-security-and-compliance?hsLang=en)

- [The Cabbage Patch Blog](https://7613181.hs-sites.com/en/blog)

[![Chill listening crop-3](https://knowledge.happycabbage.me/hs-fs/hubfs/HCA_Logo_horizontal-4.png?width=146&height=24&name=HCA_Logo_horizontal-4.png "Chill listening crop-3")](http://happycabbage.io)

happycabbage.io Help Center

Copyright © 2025, Happy Cabbage Analytics