---
title: "Buy x get x: BOGO and 3 for 2 deals in WooCommerce"
description: "Set up buy one get one free, 3 for 2 and buy 2 get 1 half price in WooCommerce with Pricepep's Buy x get x method. The cheapest units get the discount."
url: "https://pricepep.com/docs/buy-x-get-x/"
updated: "2026-12-02"
category: Product pricing
---

# Buy x get x: BOGO and 3 for 2 deals in WooCommerce

Buy x get x discounts more units of the same products the customer buys: buy 1 get 1 free, buy 2 get 1 free (3 for 2), buy 2 get the third half price. Choose the method **Buy x get x** (once) or **Buy x get x - Repeating** (again for every full set). The cheapest units always get the discount.

## How do I set up buy 2 get 1 free?

1. Go to **WooCommerce > Pricepep > Product Pricing** and click **Add Rule**.
2. Set **Method** to **Buy x get x - Repeating** (or **Buy x get x** for one free item per order).
3. Set **Quantities**, for example **Added up** so any products of the selection can mix.
4. Under **Quantities & Discount**:
   - **Buy - At Full Price**: `2`
   - **Get - Discounted**: `1`
   - **Discount**: **Percentage discount**, `100`
5. Under **Products**, choose the products, for example **Product category** in list "Socks".
6. Click **Save Changes**.

A common mistake is typing 3 in **Buy - At Full Price** for "the third is free": Buy counts only the units paid at full price.

## Which units are discounted?

Pricepep sorts the matching units by price: the most expensive are used as the bought units, the cheapest get the discount. Socks at $9, $7 and $5 in a buy 2 get 1 free deal: the $5 pair is free. There is no option to discount the most expensive unit. How the other methods pick units is in [does the discount apply to the cheapest item first?](/docs/does-the-discount-apply-to-the-cheapest-item-first/).

## What does Repeating change?

| Units in cart (all $5) | Buy x get x (Buy 2, Get 1) | Buy x get x - Repeating |
| --- | --- | --- |
| 2 | nothing free | nothing free |
| 3 | 1 free | 1 free |
| 6 | 1 free | 2 free |
| 7 | 1 free | 2 free |

## Can I limit how often the deal repeats?

Yes, since 2.6.0. **Buy x get x - Repeating** has an optional **Maximum repetitions** field next to **Quantities**: the most times the deal applies in one cart, counted over all matching products (each set bought and discounted counts once). Leave it empty (placeholder "No limit") to repeat for every full set, as before.

| Units in cart (all $5), Buy 1 Get 1 free, Repeating | No maximum | **Maximum repetitions** `3` |
| --- | --- | --- |
| 4 | 2 free | 2 free |
| 10 | 5 free | 3 free |
| 4 of product A + 4 of product B (**Quantities** **Individual product**) | 4 free | 3 free in total |

The field takes whole numbers from 1. **Buy x get x** without Repeating applies once anyway.

## Which discounts can I give?

**Percentage discount** (100 for free, 50 for half price), **Fixed discount** (an amount off each discounted unit) or **Fixed price** (a price for each discounted unit, 0 for free).

## Which products count together?

**Quantities** decides it: with **Individual product** the customer needs 3 units of the same product (sizes can mix); with **Individual variation** 3 of the same variation; with **Added up** any 3 matching products. See [quantities](/docs/quantities-and-ranges/).

## Can the free unit be added to the cart automatically?

No, automatic adding works only with [Buy x get y](/docs/buy-x-get-y/) rules for one specific product. With Buy x get x the customer adds all units.

## Examples

- **Buy 1 get 1 free:** Buy 1, Get 1, Percentage discount 100, Repeating.
- **3 for 2 on all books:** Buy 2, Get 1, Percentage discount 100, Products Product category in list Books, Quantities Added up, Repeating. Step by step in [buy 2 get 1 free](/docs/buy-2-get-1-free-cheapest/).
- **Second pair 50% off:** Buy 1, Get 1, Percentage discount 50.
- **5 + 1 free:** Buy 5, Get 1, Percentage discount 100, Repeating.

## Frequently asked questions

### Which item is free in buy 2 get 1 free?

The cheapest one. Pricepep uses the most expensive units as the bought units and discounts the cheapest.

### What do I enter for buy 2 get 1 free?

Buy - At Full Price 2, Get - Discounted 1, Discount Percentage discount 100. Not 3 in the Buy field.

### Does the deal apply again for 6 items?

Only with Buy x get x - Repeating. Buy x get x applies once.

### Can I limit how often a repeating deal applies in one order?

Yes, since 2.6.0: set Maximum repetitions in a Buy x get x - Repeating rule. With Buy 1 Get 1 free and Maximum repetitions 3, 10 units get 3 free instead of 5.

## Related articles

- [Buy 2 get 1 free (cheapest item free) in WooCommerce](https://pricepep.com/docs/buy-2-get-1-free-cheapest/)
- [Buy x get y: discount another product in WooCommerce](https://pricepep.com/docs/buy-x-get-y/)
- [Quantities in pricing rules: individual or added up](https://pricepep.com/docs/quantities-and-ranges/)
- [Does the discount apply to the cheapest item first?](https://pricepep.com/docs/does-the-discount-apply-to-the-cheapest-item-first/)

All articles in [Product pricing](https://pricepep.com/docs-category/product-pricing/)
