How to Set Up Buy X Get Y Free Magento 2 Promotions?
[Updated June 10, 2025] Struggling to increase your store’s order values and clear out excess stock?
Buy X get Y free Magento promotions boost store sales. This offer encourages customers to purchase extra store items.
This tutorial covers the setup, benefits, and practical use cases of this price rule.
Key Takeaways
-
A "Buy X, Get Y" promotion in Magento 2 offers customers complimentary items.
-
Free item deals boost sales and clear excess inventory.
-
The word "FREE" motivates customers more than simple discounts.
-
Create the deal by setting conditions and specific actions.
-
Bundling products and clearing stock are common use cases.
What is Buy X Get Y Free in Magento 2?
“The 'Buy X Get Y Free' feature in Magento 2 is a type of cart price rule. As per the rule customers get a free item with a purchase.”
The promotion's logic depends on four core components.
-
The "X" item is the product a customer must purchase.
-
The "Y" item is the product the customer gets for free.
-
The condition is the required purchase quantity of X.
-
The action applies the free Y item discount to the cart.
A customer must buy a defined quantity of a product. This purchased item represents the "X" in the promotion. The customer then gets a different item free. This free product is the "Y" part of the offer.
Merchants create this promotion within the admin panel. They use conditions to target specific customer groups. They also use actions to define the discount logic. The rule offers a flexible and powerful marketing strategy.
Core Functioning of "Buy X Get Y Free” Promotion in Magento Backend
-
Number of Sets: Magento first calculates how many complete "sets" of
(X + Y)
items are in the cart.Number of Deals = floor(Total Quantity in Cart / (X + Y))
(The
floor
function rounds down to the nearest whole number, as you can't get a partial deal.) -
Total Free Items: It then calculates the total number of items to make free based on the deals earned.
Total Free Items = Number of Deals * Y
-
Total Paid Items: The number of items the customer pays for is the total quantity minus the free ones.
Total Paid Items = Total Quantity in Cart - Total Free Items
-
Total Discount: The actual discount value is the price of the free items.
Total Discount = Total Free Items * Price_Per_Item
-
Final Cost: The final price is the cost of the paid items.
Final Price = Total Paid Items * Price_Per_Item
Why Use Buy X Get Y Free Magento Promotions?
1. Increase Average Order Value
-
Promotions encourage customers to add more items to their carts. The prospect of a free product is a strong incentive.
-
Customers may purchase more than they intended. This increases the total value of the order.
-
Higher order values lead to increased revenue per transaction. It is a direct path to boosting all-around store profits.
2. Clear Excess Inventory
-
Retailers often have overstocked or seasonal items. These products can tie up valuable capital and warehouse space. A "Buy X Get Y Free" promotion can move this inventory.
-
For instance, to receive a free pair of winter gloves, customers must buy a winter coat.
-
This strategy clears old stock to make room for new products. It turns potential losses into a marketing opportunity.
3. Enhance Customer Loyalty
-
Rewarding customers fosters a positive relationship with the brand. A valuable offer makes customers feel appreciated.
-
They might return for future purchases. This repeat business is the cornerstone of a loyal customer base.
-
Loyalty programs can incorporate these types of promotions. They provide exclusive deals to returning shoppers.
4. Attract New Customers
-
Compelling offers can capture the attention of new shoppers. A "Buy One Get One Free" deal is very attractive.
-
It can persuade a potential customer to make their first purchase. This introduces new people to the store's products and services.
-
A positive first experience can convert them into regular patrons. The promotion acts as a powerful acquisition tool.
5. Control Discount Stacking with Rule Priority
-
Stores often run several active promotions at once. Unwanted discount stacking can cause significant profit loss.
-
Magento provides a
Priority
setting for each price rule. This feature controls the specific order of rule application. -
Rules with lower numbers have a much higher priority. A rule with
Priority: 1
runs beforePriority: 2
. -
This control builds strategic and intentional promotional layers. It prevents harmful overlaps between different active promotions.
Comparing "Buy X Get Y" vs. Other Magento Promotions
Feature / Criteria | Buy X, Get Y Free | Percent of Product Price | Fixed Amount Discount | Fixed Amount Discount for Whole Cart | Free Shipping |
---|---|---|---|---|---|
Primary Goal | This deal increases the average order value. It clears specific or unwanted product inventory. Use this deal to cross-sell and bundle products. | This deal drives sales for specific products. It also works for entire product categories. Use it to run your site-wide sales. | Encourage customer trial of a new product. Provide a simple and predictable discount amount. | Encourage customers to reach a spending threshold. They spend one hundred dollars to save twenty. | This promotion reduces high cart abandonment rates. It also increases your total conversion rate. |
Customer Psychology | The word "FREE" is a strong motivator. It feels like a gift, not a discount. It encourages discovery of new "Y" items. | This is a classic and straightforward sale. Customers calculate the savings for themselves. This discount type appeals to bargain hunters. | The savings value is tangible and absolute. Customers see a concrete dollar amount saved. This works well for lower-priced store items. | This motivates customers to add more items. They want to reach the spending threshold. They want to unlock the special reward. | This overcomes a major barrier to purchase. Customers see this as a standard expectation. It does not feel like a special deal. |
Best Use Case | Buy a camera to get a memory card. Buy two shirts and get a third one. Clear out all your old-season accessories. | Offer twenty percent off all your dresses. Give fifteen percent off the first order. Run a flash sale on a specific brand. | Offer five dollars off new coffee flavors. Give fifty dollars off all your laptops. It is safer for high-ticket product items. | Save twenty-five dollars on orders over $150. Get ten dollars off any three items. | Offer free shipping on orders over $49. Provide free shipping during a holiday period. Compete with all the other major retailers. |
Impact on Margin | The margin impact is the "Y" item's cost. This cost stays fixed for each transaction. This makes return on investment simple to calculate. You must select the "Y" item with care. | The discount amount scales with product price. It can erode margins on high-ticket items. You must plan this promotion with care. | The discount amount is a known fixed cost. It protects margins on expensive product items. The discount percentage is lower on goods. | The discount percentage decreases past the threshold. This protects your margins on large orders. | The cost is the actual absorbed shipping fee. This cost varies based on package details. Weight and location also change the final cost. |
Configuration Complexity | This setup requires care with the quantities. Set conditions in the Actions tab also. Target the correct SKUs or product categories. |
This configuration is a simple setup process. You enter the correct percentage discount value. | This setup is a simple configuration process. You enter the fixed dollar discount amount. | The action is simple but needs a condition. Set the Subtotal condition for the threshold. You must define the spending threshold amount. |
The action is simple but becomes complex. Rules need destination or package weight data. |
Magento Apply Setting |
Buy X get Y free (discount amount is Y) |
Percent of product price discount |
Fixed amount discount |
Fixed amount discount for whole cart |
Free Shipping (with shipment matching options) |
How to Set Up Buy X Get Y Free Promotions in Magento 2?
Step 1. Navigate to Cart Price Rules
-
In the Magento admin backend, locate the
Marketing
tab on the main menu. -
Under
Marketing
, find thePromotions
section. -
Click on
Cart Price Rules
to open the rules grid.
- This area lists all existing cart-level promotions. It is the central hub for creating new discount rules.
Step 2. Create a New Rule
- On the Cart Price Rules page, click
Add New Rule
. This action opens a new configuration page. Here, merchants define all aspects of the promotion.
- The page has several expandable sections for rule details. Each section controls a different part of the promotion's logic. This is where the foundation of the deal gets built.
Step 3. Define Rule Information
- Expand the
Rule Information
section.
-
Enter a descriptive
Rule Name
for internal reference. For example, use "Buy One T-Shirt Get One Free". -
Add a
Description
to explain the rule's purpose. -
Set the
Active
status to "Yes" to enable the promotion. -
Assign the rule to the correct
Websites
andCustomer Groups
.
Step 4. Set the Conditions
- Now, expand the
Conditions
section of the page. This part determines when the rule gets triggered.
-
Leave the conditions blank to apply the rule to all products.
-
To target specific items, you must add conditions.
-
Click the plus icon to add a new condition.
-
Choose an attribute like
SKU
from the dropdown list. This lets you specify the products that qualify.
Step 5. Configure the Actions
- The
Actions
section is the core of the setup.
-
In the
Apply
dropdown, selectBuy X get Y free
. This reveals the specific fields for this promotion type. The action tells Magento to give a product for free. -
The correct selection here is critical for the rule's function. It changes the available options for the discount.
Step 6. Define Action Details
-
Enter the quantity of the free item in
Discount Amount
. For a "get one free" deal, enter the number1
. -
Set
Discount Qty Step (Buy X)
to the required purchase quantity. For a "buy one" deal, also enter the number1
. -
The
Maximum Qty Discount is Applied To
field limits the deal. It controls how many free items a customer can receive.
Step 7. Apply the Rule to Specific Products
-
To make the rule apply to certain items, add a condition here.
-
Under
Actions
, find the condition section. Use this to define the products that qualify for the X part. You can also specify the Y product if it is different. -
Use the product
SKU
for precise targeting of the items. This ensures the discount applies only to intended products.
Step 8. Save and Test the Rule
-
After configuring all sections, click the
Save
button. -
It is important to clear the Magento cache. Go to
System > Cache Management
to flush the cache. This ensures the new rule applies to the frontend.
-
At last, test the promotion on the storefront.
-
Add the qualifying items to the cart to verify the discount.
Use Case Examples of Buy X Get Y Free Promotions
1. Fashion Retail - Buy a Shirt, Get a Tie Free
Mitchell and Ness increases accessory sales via the "Buy a Shirt, Get a Tie Free" promotion. Customers must purchase a specific shirt SKU
.
They then receive a specific tie SKU
for free. This encourages customers to buy a higher-margin item. It also introduces them to the store's accessory line. This cross-selling tactic boosts the average order value.
2. Electronics - Buy a Soundbar, Get Aux cables Free
Vizio bundles items using this rule. A "Buy a Soundbar, Get Aux cables Free" offer attaches an essential accessory for the soundbar.
This promotion adds value for the customer. It simplifies the purchasing process for them. The store benefits by selling a core product. It also moves related accessory inventory.
3. Beauty Products - Buy Two Lipsticks, Get One Free
Cosmetic stores like Sigma Beauty often use publicity to drive volume sales. A "Buy Two Lipsticks, Get One Free" is a definitive example.
The rule applies when a customer adds three paired lipsticks to their cart. The system makes one of them free. This encourages customers to stock up on their favorite shades. It can also tempt them to try a new color.
4. Food & Beverage - Buy a Pack of Cheesecakes, Get a Bottle Free
BXGY strategy also performs well for promoting bulk purchases. Cheesecake Australia offers a special deal. "Buy a Pack of Cheesecakes, Get an Extra Bottle Free."
This motivates customers to purchase a larger quantity. The free bottle serves as a bonus for their bulk order. It is an effective way to increase the total sales amount. This is also useful for subscription-based models.
5. Book Store - Buy Any Two Sci-Fi Novels, Get One Free
Promotions can also apply to product categories. Stores like Kobo.com can set up a genre-specific offer. "Buy Two Science Fiction Novel Ebooks, Get a Third One Free."
The rule's conditions would target the "Science Fiction" category. This encourages fans of that genre to explore more titles. It can also help clear stock from a specific category.
6. Clearing Stock - Buy a Winter Coat, Get Gloves Free
Seasonal promotions are perfect for managing inventory.
During the winter, stores need to clear the remaining stock. Offers like "Buy a Winter Coat, Get Gloves Free" from brands like Paul Smith incentivize buying end-of-season items.
The free gloves add extra value for the shopper. It is a smart way to avoid deep discounts on the coat itself.
FAQs
1. Can the 'buy X, get Y free' rule apply to virtual or downloadable products?
Magento applies the 'buy X, get Y free' rule to all product types. You can use it for virtual or downloadable goods. Set conditions to target specific digital product SKUs. This allows promotions for non-physical store items.
2. How do promotions affect customer product returns?
The store's return policy dictates the process. Customers often must return the free "Y" item. This happens when they return the paid "X" item. The policy prevents potential promotion abuse by shoppers.
3. Can I schedule a "Buy X Get Y" promotion?
Magento provides scheduling options for all cart rules. Set a start date and an end date. The promotion will activate and deactivate itself. This automates your store's marketing campaign calendar.
4. What happens if the free "Y" item is out of stock?
The cart price rule will not trigger as intended. The customer will not receive the free "Y" item. Magento cannot add an out-of-stock item to carts. This prevents fulfillment issues for the store owner.
5. Can I restrict this offer with a coupon code?
Yes, you can restrict the offer with a code. Select "Specific Coupon" in the Coupon
field. The customer must enter the code for the discount. This creates exclusive offers for certain audiences.
6. How does this promotion type interact with taxes?
Magento calculates taxes based on the discounted price. The free item will have a zero value subtotal. Hence, no tax applies to the free "Y" product. Tax settings for the "X" item remain unchanged.
Summary
The Buy X Get Y Free rule helps Magento merchants achieve specific business goals. Proper configuration increases sales and customer loyalty. Below mentioned are the main tutorial highlights:
-
Configure the rule under
Marketing > Cart Price Rules
. Select theBuy X get Y free
action type. -
Use this promotion to increase the average order value. It also helps clear old or excess inventory.
-
Apply conditions to target specific product SKUs. You can also target entire product categories.
-
Set a rule priority to control discount stacking. This prevents unwanted interactions with other offers.
-
Always flush the Magento cache after saving the rule. Test the promotion on the live storefront.
Consider managed Magento hosting for expert-vetted promotional strategy configuration.