How to Create Discount Codes on Shopify

How to create Shopify discount codes — admin interface showing percentage, fixed amount, and free shipping discount setup options

Shopify discount codes drive real results — merchants who use them see customers spend 24% more per order on average, according to Seguno's 2025 email discount report. Yet most stores either never create one or set up a flat "10OFF" code and call it a strategy.

Shopify gives you four distinct discount types, automatic discounts, stacking rules, and usage limits — and getting the setup wrong means either leaving money on the table or accidentally giving away your margin. This guide walks through every option so you can create discount codes that drive sales without eating your profit.

The Four Shopify Discount Types (And When to Use Each)

Every discount you create in Shopify falls into one of four categories. Each serves a different purpose, and picking the wrong type is the most common mistake new merchants make.

  • Amount off products — A percentage or fixed dollar amount off specific products or collections. Use this for clearing slow inventory or promoting new arrivals. Example: 20% off all summer dresses.
  • Amount off order — A discount applied to the entire cart total. Best for increasing average order value with minimum purchase thresholds. Example: $15 off orders over $75.
  • Buy X get Y — Customer buys a qualifying product and gets another product free or discounted. Use this for moving paired items or introducing new products. Example: Buy 2 t-shirts, get 1 free.
  • Free shipping — Removes shipping costs entirely or above a minimum order value. This is the most universally effective discount type — shipping costs are the #1 reason for cart abandonment.

If you're unsure which to start with, create an "amount off order" discount with a minimum purchase requirement. It increases AOV and gives you margin protection built in.

Step-by-Step: Create a Discount Code in Shopify

This process takes about 2 minutes. Here's the exact flow in Shopify admin:

  1. Go to Discounts in your Shopify admin sidebar.
  2. Click Create discount.
  3. Choose your discount type (amount off products, amount off order, buy X get Y, or free shipping).
  4. Select Discount code (not automatic discount — more on that distinction below).
  5. Enter your code or click Generate for a random alphanumeric code. Keep codes short and memorable: "SPRING20" beats "DISC-7X9K2M".
  6. Set the discount value — percentage or fixed amount.
  7. Choose what it applies to: all products, specific collections, or specific products.
  8. Set minimum requirements if needed (minimum purchase amount or minimum quantity of items).
  9. Under Maximum discount uses, set total usage limits and whether it's one use per customer.
  10. Set your start date and optional end date.
  11. Click Save discount.

Your code is active immediately (or on your start date). Share it in emails, social posts, or your website banners.

Should You Use Shopify Discount Codes or Automatic Discounts?

Discount codes require customers to enter a code at checkout. Automatic discounts apply when cart conditions are met — no code needed. The choice between them matters more than most merchants realize.

Discount codes work best when you want to track which marketing channel drives conversions. Give each email campaign, influencer, or ad a unique code ("INSTA15", "EMAIL20") and you'll know exactly where your sales come from. Codes also create exclusivity — a customer who has a code feels like they earned something.

Automatic discounts work best for storewide promotions and cart-based incentives. They reduce friction because customers don't need to remember or find a code. The discount appears as a line item in the cart, which builds purchase confidence before checkout.

The 2026 trend is clear: public discount codes are declining. More merchants use automatic discounts for sitewide sales and reserve codes for targeted campaigns, loyalty rewards, and influencer partnerships. Use both — just use them for different purposes.

Stacking Rules: What Combines With What

Shopify's discount stacking rules trip up even experienced merchants. Here's how it actually works:

  • One product discount per line item. If two product discounts target the same item, Shopify applies the better one — it doesn't stack both.
  • Order discounts + product discounts can combine — but only if you explicitly enable combination on each discount.
  • Only one shipping discount per order. You can't stack two free shipping offers.
  • Buy X get Y items can't receive additional product discounts. The "get Y" item is locked to that promotion.
  • Maximum per order: 5 product/order discounts plus 1 shipping discount.
  • Maximum active automatic discounts: 25 at any time.

When you create a discount, scroll to the Combinations section and deliberately choose which other discount types it can stack with. The default setting blocks combinations — you have to opt in.

The Margin Math Most Merchants Skip

A 20% discount doesn't cost you 20% of your revenue. It costs you a much larger percentage of your profit. This is the math that separates merchants who use discounts profitably from those who bleed margin.

Say you sell a product for $50 with a $30 cost (40% gross margin, or $20 profit per unit). A 20% discount drops your price to $40 — but your cost stays at $30. Your profit per unit drops from $20 to $10. That's a 50% reduction in profit from a 20% discount.

Three rules to protect your margin:

  • Always set minimum purchase requirements. A "$10 off orders over $75" discount only triggers on carts large enough to absorb the hit. If your average order is $55, set the minimum at $70-80 to push AOV up while discounting.
  • Cap the maximum discount value. For percentage discounts, Shopify lets you set a maximum dollar amount. "20% off, up to $25" prevents a customer with a $500 cart from getting $100 off.
  • Set usage limits. One use per customer prevents abuse. A total usage cap (e.g., "first 100 uses") creates urgency and limits your total exposure.

Run this calculation before creating any discount: at this discount level, how many additional units do I need to sell to make more total profit than selling at full price? If the answer seems unrealistic, reduce the discount. For a deeper look at pricing strategy, see our guide on how to price products on Shopify for maximum profit.

Five Common Discount Code Mistakes

Running the same code forever. A permanent "WELCOME10" code trains customers to never buy at full price. Use expiration dates — 7 to 14 days works for most campaigns.

Making codes too generous. Research from Opensend shows the average ecommerce discount is 19%. If you're offering 30-40% off, you're likely overpaying for conversions you'd get with a smaller offer. Start at 10-15% and increase only if results don't follow.

No minimum purchase requirement. Without a floor, customers buy your cheapest product with the code and leave. Tie the discount to a cart value above your current average order value.

Ignoring the free shipping option. Many merchants default to percentage discounts, but free shipping often converts better because it removes the most common checkout objection. Test a "free shipping over $50" offer before assuming a percentage discount is the right move.

Not setting one-per-customer limits. Without this, a single customer (or worse, a discount code sharing site) can use your code dozens of times. Always toggle on "Limit to one use per customer" unless you have a specific reason not to.

When Discounts Aren't the Right Tool

Discounts work for specific goals: clearing inventory, rewarding loyal customers, boosting a slow period, or converting first-time buyers. They don't work as a permanent growth strategy.

If you find yourself running discounts every week, your pricing might be the real problem. Customers trained to expect discounts will wait for the next sale instead of buying today. Seguno's research shows diminishing returns with each subsequent discount send — by the third email with a code, conversion drops significantly.

Consider alternatives: quantity discounts that reward larger orders without devaluing your brand, bundle deals that increase perceived value instead of cutting price, or loyalty programs that earn repeat purchases. If you sell COD, EasySell lets you add quantity discount tiers and bundle offers directly on the product page — giving customers a reason to buy more without a coupon code.

Create one discount code today. Make it specific: a 15% code for your email list with a minimum purchase requirement, a 7-day expiration, and a one-per-customer limit. Track the results, check your margin impact after a week, and adjust from there. That single, well-structured discount will outperform the generic "10OFF" code that's been sitting in your store for six months.