# Inventory calculation rules for Master Products

This guide explains how to calculates the available inventory for a **Master (bundle) product** based on its **component items**.

<figure><img src="https://2618001169-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQFJLe0hkcyiradJOCgpx%2Fuploads%2FF0Q4o5IcrB7gLGiQAf8i%2F2025-11-14_17-31-29.png?alt=media&#x26;token=fefca324-67c4-4880-be41-2df6d0fb00c8" alt=""><figcaption></figcaption></figure>

### ℹ️ What is “Master product inventory”?

The **Master product** is the bundle item customers purchase.\
Its available quantity is calculated from the inventory of its **components**.

Example:

* Master: **Gift Box Set**
* Components: **Candle ×1**, **Gift Box ×1**

***

### **❓**&#x57;hy “Master product inventory matter?

* **Prevents overselling bundles**\
  If the Master shows “In stock” but a component is out of stock, you can sell bundles you can’t fulfill. Correct Master inventory avoids that.
* **Shows the real bundle availability**\
  The Master’s available quantity should reflect what you can truly build from components (often limited by the lowest component stock).
* **Keeps storefront + fulfillment aligned**\
  Accurate Master inventory means your storefront availability matches your warehouse reality, reducing cancellations and support issues.

***

### 🔢 Default calculation

Calculates bundle availability using this logic:

> **Bundle available = the lowest component availability**, based on required quantity.

#### Formula

For each component:

* **Component availability = (component stock ÷ required quantity)**

Then:

* **Master available = min(all component availabilities)**

***

### 🧪 Example&#x20;

Bundle setup:

* Candle × 1
* Gift Box × 1

Inventory:

* Candle stock = 20
* Gift Box stock = 12

Component availability:

* Candle: 20 ÷ 1 = 20
* Gift Box: 12 ÷ 1 = 12

✅ Master (bundle) available = **12**

**🙋 Still need support?**

If you still need help, please feel free to contact us at <hi@tipo.io>. We’ll be happy to assist you further.
