Discount codes are one of the most effective tools for driving sales, rewarding loyal customers, and running promotions on your Shopify store. Creating a discount code takes less than two minutes in Shopify admin — but using them strategically is what separates stores that grow from those that train customers to wait for sales. This guide covers exactly how to create discount codes in Shopify and how to use them effectively.
How to Create a Discount Code in Shopify
Step 1: Go to Discounts in Shopify Admin
Log in to your Shopify admin, click on Discounts in the left sidebar, then click Create discount. You will see four discount types: Amount off products, Amount off orders, Buy X get Y, and Free shipping.
Step 2: Choose Your Discount Type
- Amount off products: A fixed dollar or percentage discount on specific products or collections
- Amount off orders: A discount applied to the entire order total, useful for cart abandonment recovery
- Buy X get Y: Classic buy-one-get-one or buy two get one free promotions
- Free shipping: Removes shipping cost at checkout — highly effective because unexpected shipping fees are the top reason for cart abandonment
Step 3: Configure the Code
Enter a discount code customers will type at checkout — keep it short and memorable like SAVE10 or WELCOME15. Or click Generate to create a random code. Set the discount value (percentage or fixed amount), any minimum purchase requirement, and which products or collections it applies to.
Step 4: Set Usage Limits
Control how many times the code can be used. Options include: total number of uses across all customers, limit to one use per customer, and an active date range. For a Black Friday promotion, set an end date so the discount expires automatically without you having to remember to deactivate it.
Step 5: Save and Share
Click Save. Share the code in email campaigns, social media posts, influencer partnerships, or as a post-purchase email reward. You can track how many times the code has been used in the Discounts section of your admin.
Types of Shopify Discounts and When to Use Each
Percentage Discounts (10%, 20%, 30%)
Best for promotions where you want the discount to scale with order size. A 20% discount on a $50 order ($10 off) feels more substantial than 20% on a $15 order ($3 off), which encourages customers to buy more. Use percentage discounts for seasonal sales and clearance events.
Fixed Amount Discounts ($5, $10, $20 off)
Best for cart abandonment recovery and first-time purchase incentives. A $10 off code feels more concrete than “10% off” — customers know exactly what they save. Pair with a minimum order value to protect margins: “$10 off orders over $60.”
Free Shipping Codes
Free shipping removes the friction that causes most cart abandonments. A free shipping code with no minimum order threshold is your highest-converting discount type — but set a minimum purchase ($35 or $50) to protect profitability if your shipping costs are significant.
Automatic Discounts
Shopify also supports automatic discounts that apply at checkout without the customer entering a code. Use these for sitewide sales where you do not want to create friction with a code entry step. Go to Discounts > Create discount > Amount off orders, then select “Automatic discount” instead of “Discount code.”
Discount Code Best Practices
- Do not run permanent public discounts — train customers to wait for sales instead of buying at full price
- Use codes for specific purposes: welcome, referral, abandoned cart, loyalty reward, influencer partnership
- Track redemption rates in Shopify analytics to identify which discount sources drive the most revenue
- Combine discounts with loyalty programs — offer bonus points instead of codes where possible to keep customers inside your rewards ecosystem
- Set expiry dates on all promotional codes to create urgency
Frequently Asked Questions
Can I create multiple discount codes at once in Shopify?
Yes. Go to Discounts, click Create discount, and select “Discount code.” Under the code field, click “Generate codes” to bulk create up to 100,000 unique codes at once — useful for email campaigns where each subscriber gets a unique code.
Can customers combine two discount codes on Shopify?
By default, Shopify only allows one discount code per order. However, Shopify Plus merchants can use the Shopify Scripts feature to allow combining discounts. For non-Plus plans, use automatic discounts alongside a code — automatic discounts and code discounts can stack in Shopify.
How do I give a specific customer a discount code in Shopify?
Create a discount code with a usage limit of 1 and share it privately with that customer via email. For more targeted customer-specific discounts, use a Shopify app like Govalo or Conjured Referrals that can generate and distribute unique codes per customer automatically.
Do Shopify discount codes expire?
Only if you set an end date when creating the code. Codes without an end date remain active indefinitely. Always set end dates on promotional codes to prevent customers from using sale prices months after the promotion ends.
Can I apply a Shopify discount to specific variants?
Yes. When creating an “Amount off products” discount, you can target specific products and then check individual variants within those products. This lets you discount the large size of a product while keeping the small size at full price, for example.
Final Thoughts
Shopify makes it easy to create discount codes in minutes, but using them strategically is what drives real results. Reserve your discount codes for specific, purposeful moments — welcome offers, cart recovery, loyalty rewards, and seasonal promotions — rather than running permanent discounts that erode your margins and train customers to never pay full price. Track every code and double down on the discount sources that bring in the highest lifetime value customers.