# 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="/files/uyloTAiv5rQeefMgzNzw" 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tipo.io/bundle-groups/inventory-calculation-rules-for-master-products.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
