Back to all posts
Blogs
How to Create Buy X Get Y Offers on Shopify
A general, flexible step by step guide to configuring a buy X get Y offer on Shopify, covering the core purchase and reward decisions.
6 minutes, 27 seconds
Social Media Manager
Published
Quick Answer
A buy X get Y, or BXGY, offer rewards a customer with a discounted or free item once they purchase a defined quantity, where X is the quantity purchased and Y is the reward quantity and discount depth. The structure is flexible, covering everything from buy 1 get 1 free to buy 3 get 2 at 50 percent off. Hulk Bundles Quantity Breaks lets merchants configure a BXGY offer with a custom quantity and reward combination for any campaign.
Introduction
Buy X get Y is the general, flexible framework behind most promotional discounts that reward a customer for purchasing a certain quantity. Before building a specific variant, such as buy 2 get 1 free, it helps to understand how the general setup process works.
This article covers the foundational, flexible process for configuring any BXGY offer, the decisions that shape the X and Y values, and how to test the structure before launch. Specific named variants are covered in dedicated articles.
What Buy X Get Y Actually Means
In a BXGY offer, X represents the quantity a customer must purchase to qualify, and Y represents the reward, both a quantity and a discount level applied to that reward. Both values are configurable.
This means a BXGY offer is not one fixed structure. Buy 1 get 1 free, buy 2 get 1 at 50 percent off, and buy 4 get 2 free are all variations of the same underlying buy X get Y logic, just with different numbers.
The Core Decisions Behind Any BXGY Offer
The quantity threshold, X, determines how much a customer needs to buy before the reward applies. A lower threshold is easier to reach but rewards less purchasing behavior, while a higher threshold asks for more commitment.
The reward quantity and discount depth, Y, determines how generous the offer is. A fully free reward item is the most generous version, while a partial discount, such as 50 percent off, protects margin while still rewarding the purchase.
The eligible products matter as well. A BXGY offer can apply to the same product being purchased or to a different, related product as the reward, depending on the goal of the campaign.
| Element | What It Controls | Example |
|---|---|---|
| X (purchase quantity) | How many units trigger the offer | Buy 3 units |
| Y (reward quantity) | How many units are rewarded | Get 1 unit |
| Reward discount depth | How much of the reward is discounted | Free, or 50 percent off |
| Reward product | Which product the reward applies to | Same product or a different one |
When a Flexible BXGY Offer Makes Sense
A general, custom BXGY setup is useful when a specific named structure, such as buy 2 get 1 free, does not quite fit the campaign, for example when the purchase quantity needs to be higher, or the reward should be a different product.
It is also the right starting point for merchants still deciding on the exact ratio, since building the offer with full control over X and Y allows testing different combinations before settling on a final structure.
How to Set Up a Buy X Get Y Offer on Shopify
Step 1: Define the Promotion
Decide the purchase quantity, the reward quantity, and the discount depth on the reward before configuring anything. This is the core decision that shapes the entire offer, so it should be based on margin and typical buying behavior.
- Set the purchase quantity, X, required to qualify for the offer
- Set the reward quantity and discount depth, Y, including whether it is free or partially discounted
- Decide whether the reward applies to the same product or a different one
- Check margin at the chosen combination before moving forward
Step 2: Configure the Discount
Build the offer inside Hulk Bundles Quantity Breaks, entering the purchase quantity, reward quantity, and discount depth decided in step one, and selecting the products the offer applies to.
Step 3: Set the Conditions
Use the Conditions tab to scope the offer to specific products or a collection, and add any further targeting, such as a customer segment or location, that the campaign requires.
- Restrict the offer to the intended product or collection
- Confirm both the purchase and reward products are correctly selected
- Add a customer segment or location condition only if the campaign needs it
Step 4: Test the Offer
Build test carts at different quantities, including just below and just at the purchase threshold, to confirm the reward only applies once the customer actually qualifies.
- Test a cart just below the purchase quantity to confirm no reward applies
- Test a cart exactly at the purchase quantity to confirm the reward applies correctly
- Confirm the reward discount depth calculates correctly, whether free or partial
- Check the offer displays clearly on the product page and in the cart
- Test on mobile as well as desktop
Step 5: Launch and Monitor
After launch, monitor whether customers are reaching the purchase threshold as expected and whether the discount depth is sustainable across the campaign's duration.
Buy X Get Y Offer Examples
Business: Snack food brand
Problem: Wanted a flexible offer beyond a standard buy 2 get 1 structure to move a larger case size.
Offer: Buy 4 bags, get 2 bags free
Setup: Configured a custom BXGY offer with Hulk Bundles Quantity Breaks app, setting X to 4 and Y to 2 free units.
Why it fits: The higher quantity threshold matched a bulk buying pattern that a lower BOGO ratio would not have captured.
Business: Cosmetics brand
Problem: Wanted to reward a larger purchase with a partial discount rather than a fully free item.
Offer: Buy 5 products, get 1 at 50 percent off
Setup: Set a higher purchase threshold with a partial reward discount to protect margin on a higher volume purchase.
Why it fits: A partial discount at a higher quantity threshold rewarded loyal buyers without giving away a fully free unit.
Business: Kitchenware store
Problem: Wanted the reward to be a different, smaller companion product rather than the same item purchased.
Offer: Buy 2 cutting boards, get 1 knife sharpener free
Setup: Configured the reward product to be different from the purchased item, using the general BXGY setup rather than a same product structure.
Why it fits: The custom setup allowed a cross product reward that a fixed BOGO structure could not accommodate.
Read more case studies for our apps covering how merchants build custom buy X get Y offers.
Best Practices for Buy X Get Y Offers
- Base the purchase quantity on how much customers already typically buy
- Check margin at the chosen reward discount depth before launch
- Use a partial discount instead of a fully free reward when margin is tighter
- Keep the offer visible and clearly explained on the product page
- Test both just below and at the purchase threshold before launch
- Avoid setting the purchase quantity so high that almost no customer reaches it
- Review which threshold customers are actually reaching after launch
Common Buy X Get Y Mistakes
- Setting the purchase quantity too high for typical buying behavior
- Not checking margin before offering a fully free reward
- Confusing customers by not clearly explaining what X and Y mean for the specific offer
- Applying the reward to the wrong product due to a configuration error
- Failing to test the exact threshold quantity before launch
Summary
A buy X get Y offer is the general, flexible structure behind most quantity based reward promotions, where the purchase quantity, reward quantity, and discount depth are all configurable. Starting with this general setup gives a merchant full control before narrowing in on a specific named variant.
Merchants who want full control over the purchase and reward quantities can build a custom offer using Hulk Bundles Quantity Breaks app.
Frequently asked questions (FAQs)
Buy X get Y describes a promotion where X is the quantity a customer must purchase and Y is the reward quantity and discount depth they receive once that quantity is reached.
Yes. A buy X get Y offer can be configured so the reward applies to a different, related product rather than the same item being purchased.
No. The reward can be fully free or partially discounted, such as 50 percent off, depending on how the offer is configured.
Buy 2 get 1 free is one specific version of buy X get Y with fixed values, while a general BXGY setup allows any purchase quantity, reward quantity, and discount depth to be configured.
Base the quantity on how many units customers already tend to buy, along with what the margin at that product's price point can support at the chosen reward discount.
Recommended for you
How to Combine Buy X Get Y Offers With Free Gift Promotions on Shopify
September 22, 2026
How to Create a Buy 2 Get 1 at 50% Off Promotion on Shopify
September 22, 2026
How to Create a Buy 2 Get 1 Free Promotion on Shopify
September 22, 2026
How to Choose a Free Gift for a Shopify Promotion
September 22, 2026