This guide was originally published on my blog: https://storebuildguide.blogspot.com/2026/11/blog-post_29.html

Yellow sale sign in a shop window

A well-timed discount can turn browsers into buyers, reward loyal customers and clear old stock. A badly planned one just gives away profit. This guide explains how to create discount codes on Shopify step by step, which discount types to use for which goal, and the settings that stop a promotion from costing you more than it earns.

Quick answer: In your Shopify admin, go to Discounts and click Create discount. Pick the discount type (such as amount off products, amount off order, buy X get Y or free shipping), choose Discount code, name the code, set the value, and add minimum requirements, usage limits, combinations and active dates. Then save and share the code.

Discount codes vs automatic discounts

Shopify offers two ways to give a discount:

  • Discount codes: customers type a code like WELCOME10 at checkout. Good for email subscribers, influencers, social media followers and targeted offers.
  • Automatic discounts: applied automatically when the cart meets the conditions. Good for store-wide sales and "spend X, get Y" offers, because no one has to remember a code.

This guide focuses on discount codes, but the settings for automatic discounts are very similar. As a rule of thumb, use codes when you want to reward a specific group of people, and automatic discounts when you want everyone who visits to get the deal without any extra step. Automatic discounts also avoid the frustration of a shopper forgetting a code and abandoning the checkout to go and look for it.

Which discount type should you use?

Discount type Best for Example
Amount off products Promoting specific products or collections 20% off the summer collection
Amount off order Welcome offers and general promotions $10 off orders over $50
Buy X get Y Moving more stock and raising order value Buy 2, get 1 free
Free shipping Reducing cart abandonment from shipping costs Free shipping on orders over $40

The examples above are illustrations, not recommendations. Choose values that fit your margins.

How to create a discount code, step by step

  1. In your Shopify admin, go to Discounts.
  2. Click Create discount and choose the discount type.
  3. Select Discount code as the method.
  4. Enter a code name, or click Generate for a random one.
  5. Set the value: a percentage or fixed amount (or, for buy X get Y, what the customer buys and gets).
  6. Choose eligibility: which products or collections, and which customers, the code applies to.
  7. Set minimum purchase requirements if you want them.
  8. Set maximum uses.
  9. Choose which other discounts it can combine with.
  10. Set the active dates, then click Save.

The settings that protect your profit

Shopify's help page on discount codes lists the options you can configure. Here's how to use them well:

  • Active dates: always set an end date. Shopify notes that start and end times follow your store's time zone, so double-check it for flash sales.
  • Usage limits: limit the total number of uses, and turn on one use per customer for welcome codes so they aren't reused endlessly.
  • Minimum requirements: a minimum order amount stops tiny orders from becoming unprofitable after the discount.
  • Eligible items: exclude low-margin products or items that are already on sale.
  • Combinations: decide carefully whether the code can stack with other discount classes. Stacking a percentage off with free shipping and a sale price can wipe out your margin.

Naming your discount codes

  • Keep codes short and easy to type, like WELCOME10 or SPRING15.
  • Shopify advises avoiding special characters in code names so they work correctly in checkout links.
  • Use a unique code for each channel (for example, IG15 for Instagram and EMAIL15 for your newsletter) so you can see which channel drives sales.
  • For influencers, give each person their own code to track results fairly.

Sharing discount codes

  • Welcome popup or signup form: offer a code in exchange for an email address.
  • Email: send codes to subscribers or past customers.
  • Social media: post limited-time codes to create urgency.
  • Shareable links: Shopify can create a link that applies the code automatically, so customers don't have to type it.
  • Abandoned checkout emails: use a small code sparingly to win back hesitant shoppers.

Customers enter codes at checkout, online or in person with Shopify POS. Shopify notes that a code applied at checkout doesn't apply to post-purchase offers.

Smart discount ideas for small stores

  • Welcome offer: a modest one-time code for first orders, limited to one use per customer.
  • Free shipping threshold: often more effective than a percentage off, because unexpected shipping costs put many shoppers off.
  • Bundle deal: buy X get Y to increase average order value.
  • Loyalty thank-you: a private code for repeat customers, sent with a short personal note.
  • Clearance: amount off a specific collection to move old stock.

Planning discounts for big sales seasons

Holiday weekends like Black Friday and Cyber Monday are when shoppers expect deals, and when small stores can win new customers. A little planning makes a big difference:

  • Decide your offer weeks ahead, based on margins, not on what big brands are doing.
  • Schedule the discount with exact start and end dates so it switches on and off by itself.
  • Check stock levels for the products you're promoting, so you don't sell items you can't ship.
  • Warm up your audience: tell email subscribers and followers when the sale starts.
  • Test everything the day before: the code, the checkout, shipping rates and the confirmation email.
  • Plan your follow-up: a thank-you email after purchase helps turn sale shoppers into repeat customers.

Discounts vs other ways to add value

A discount isn't the only way to persuade someone to buy. Sometimes these work just as well and cost less:

  • A free gift with orders over a certain amount.
  • Faster shipping at no extra charge for a limited time.
  • Bundles that combine related products at a small saving.
  • Extended returns during the holiday season.

Mixing these with occasional discounts keeps your brand from looking like it's always on sale.

Work out the numbers first

Before you launch a discount, calculate what you'll actually earn per order. Take the sale price, subtract the discount, product cost, shipping, packaging and payment fees. If the result is close to zero or negative, raise the minimum order amount, lower the discount, or exclude low-margin products. A discount should bring in customers who come back, not just one-off bargain hunters who cost you money.

Track your results

After a promotion ends, check your analytics to see how many orders used each code and the total sales they drove. Compare channels using your channel-specific codes. Keep what worked, drop what didn't, and delete expired codes you no longer need. Shopify notes a store limit of 20,000,000 unique discount codes, and deleting old codes frees up room.

Mistakes to avoid

  • No end date, so a code keeps working on coupon sites forever.
  • No usage limit on codes meant for one person.
  • Unchecked stacking with other discounts.
  • Discounting constantly, which trains customers to wait for the next sale.
  • Not testing the code before sharing it. Place a test order or add items to a cart and apply the code yourself to make sure it works exactly as you expect.

Discounts work best when shoppers already like what they see. Strong product pages help, so see our guide on writing product descriptions that sell, and keep your shipping clear with our guide on setting up shipping rates on Shopify.

Keep reading:

Frequently asked questions

How do I create a discount code on Shopify?

Go to Discounts in your Shopify admin, click Create discount, choose the type, select Discount code, set the value, eligibility, limits and dates, and save.

Can I limit a discount code to one use per customer?

Yes. In the usage limits section, choose to limit the code to one use per customer, and optionally set a total number of uses.

Can customers combine Shopify discount codes?

Only if you allow it. Each discount has combination settings that control whether it can be used with other discount classes.

What's the difference between a discount code and an automatic discount?

A discount code must be entered at checkout, while an automatic discount applies by itself when the cart meets the conditions.

Why isn't my discount code working?

Common reasons include the code being outside its active dates, the cart not meeting the minimum requirement, ineligible products in the cart, usage limits being reached, or a combination setting blocking it.

The bottom line

Creating discount codes on Shopify takes a few minutes: go to Discounts, choose a type, set the value and add sensible limits. Always set an end date, a usage limit and a minimum order where it makes sense, check combinations, and work out your margin first. Used carefully, discounts bring in new customers without eating your profits.

What's your best-performing discount? Share it in the comments.

Details checked against the Shopify Help Center in November 2026.