By Theo Brandt ยท Updated
Mailgun vs SendGrid for SaaS: Pricing and Fit (2026)
On the price list SendGrid is cheaper for plain sending: its Email API pricing page reads $19.95 at 50,000 emails and $34.95 at 100,000, where Mailgun's reads $35 and $75. Mailgun pulls ahead on inbound routing, address validation and a permanent free tier, while SendGrid adds a separate marketing-campaign product.
Verdict in three lines
Mailgun is the better default when your product receives mail as well as sending it (reply-by-email, support addresses), when signups need address validation, or when you want a free tier that does not expire.
SendGrid is the better default when volume is 50,000 to 100,000 emails a month and the price per email matters most, or when the same vendor should also host a marketing list with campaigns.
Neither runs your onboarding logic. Both deliver mail your application decides to send. Trial nudges, feature-adoption series and dunning sequences need either your own code or a lifecycle tool on top.
Prices checked 7 October 2026; each price links to the vendor page it came from. Both vendors price by monthly volume with a slider, so the figures are what each page displayed at the stop named.
Mailgun and SendGrid are the two names SaaS teams most often shortlist for application email: password resets, invitations, invoices, usage alerts. They overlap on the core job (an HTTP API and SMTP relay, webhooks, logs) and differ in what surrounds it. Mailgun's plan cards lead with inbound routes, validations and log retention. SendGrid's lead with volume bands, and its marketing campaigns product is priced and sold separately on its own page.
The question to settle first is therefore not which one is cheaper in the abstract, but which of three jobs you actually have: sending only, sending plus receiving and validating, or sending plus a contact list that marketers email.
| At a glance | Mailgun | SendGrid |
|---|---|---|
| Free option | Free plan: 100 emails a day, 1 custom sending domain, 1 day of log retention | Email API trial: 100 emails a day for 60 days, no card. Marketing Campaigns free plan: 2,000 contacts and 6,000 emails a month |
| Paid sending plans | Basic $15 (10,000 emails), Foundation $35 (50,000), Scale $90 (100,000) | Essentials from $19.95 (selector runs 50,000 to 100,000), Pro from $89.95 (100,000 to 2.5 million), Premier custom |
| Overage | From $1.80 per 1,000 on Basic, $1.30 on Foundation, $1.10 on Scale | Page says taxes and overages may apply; no rate is printed |
| Inbound email | Inbound routes on every plan: 1 on Free, 5 on Basic, full access from Foundation | Not listed on the pricing page; check the SendGrid docs for your use case |
| Address validation | 5,000 validations included on Scale; extra from $0.80 per 100 on Scale and $1.20 per 100 on Basic and Foundation | Not listed on the Email API pricing page |
| Dedicated IP | Dedicated IP pools on Scale; extra IPs $59 per IP per month | Included on Pro and Premier, with the option to buy more |
| Marketing campaigns | Mailing lists and a template builder are listed; no campaign editor appears on the plan cards | Marketing Campaigns: Free, Basic from $15, Advanced from $60, Custom |
| Data location | US or EU region from one account | Twilio publishes a DPA; hosting region is not stated on the pricing page |
What each one costs at 10,000, 50,000 and 100,000+ emails
Mailgun's plans bundle a monthly allowance and then charge per extra 1,000, with the per-1,000 rate falling as you go up the plans. SendGrid's selector jumps by volume band instead. The slider readouts below are the safest way to compare, because Mailgun's own overage rates do not reproduce its slider prices.
| Emails a month | Mailgun | SendGrid Email API |
|---|---|---|
| 10,000 | Basic, $15 (10,000 included) | No paid stop below 50,000 on the selector; the 60-day trial allows 100 a day |
| 50,000 | Foundation, $35 | Essentials, $19.95 |
| 100,000 | Foundation $75, Scale $90 | Essentials $34.95, Pro $89.95 |
| 250,000 to 300,000 | Scale, $215 at 250,000 | Pro, $249 at 300,000 |
| 500,000 to 700,000 | Scale, $400 at 500,000 | Pro, $499 at 700,000 |
Three conclusions fall out of the table. First, a product sending 50,000 transactional emails a month pays $15.05 less on SendGrid Essentials ($35 minus $19.95). Second, once you want a dedicated IP, the plans converge: Mailgun Scale at 100,000 is $90 and SendGrid Pro at 100,000 is $89.95, and both list dedicated IP access. Third, at the top of the ranges the two are close per email, so choose on features, not on the last few dollars.
What the cheaper plans leave out is worth reading before you sign. Mailgun Foundation keeps logs for 5 days and messages for 1 day; Scale keeps logs for 30 days and messages for up to 7. If your support team investigates "I never got the invite" tickets a week later, Foundation will not have the log. SendGrid's Essentials is the plan without dedicated IPs, which only matters when you send enough mail that sharing an IP pool hurts you.
Adding marketing changes the maths. SendGrid's Marketing Campaigns page reads Basic at $25 for 10,000 contacts (30,000 emails a month) and $50 for 20,000 contacts, so 10,000 contacts plus 50,000 transactional emails is $25 plus $19.95, or $44.95 a month, in two products from one vendor. On Mailgun the same load is $35 for sending and a separate bill for whatever tool runs the campaigns.
Where Mailgun is the stronger fit
Inbound handling is the clearest difference on the pricing pages. Mailgun lists inbound routes on every plan and full access from Foundation, which suits products where users reply to a notification and the reply must land in a thread, a ticket or a comment. If that feature is on your roadmap, Mailgun's pricing page already tells you the limit you will hit: 5 routes on Basic.
Validation is the second. Mailgun's Scale plan includes 5,000 address validations, with overage from $0.80 per 100, and the other paid plans charge $1.20 per 100. A product with an open signup form and a free trial tends to collect typos and throwaway addresses; validating at signup protects your sender reputation before the first welcome email goes out. At $1.20 per 100, checking 3,000 new signups in a month costs 30 × $1.20 = $36 on Basic or Foundation.
The free plan matters for early SaaS, too. Mailgun's 100 emails a day does not expire, while SendGrid's equivalent is a 60-day trial. A pre-launch product with a few dozen test users can stay free on Mailgun until real traffic arrives. The cap is per day, so a burst of invitations on launch day is the thing to check.
Where SendGrid is the stronger fit
SendGrid's advantage is two products under one vendor. Its Email API handles application mail, and Marketing Campaigns handles lists, with a free plan for up to 2,000 contacts and 6,000 emails a month and paid plans from $15. A founder who wants a monthly product update and a receipt flow in the same account can keep both there without adding a vendor.
It is also cheaper at the volumes most growing SaaS products start from, if you do not need Pro features. At 100,000 emails a month Essentials is $34.95 against $75 on Mailgun Foundation. The trade-off is that SendGrid's pricing page prints no overage rate for Essentials, so budget with headroom or ask sales what happens when a month runs over.
Be careful with the campaign product. It is built for contact lists and broadcasts. It does not decide that a user who invited nobody after five days should get a nudge, and nothing on its pricing page promises event-triggered lifecycle journeys. Treat it as a newsletter tool, not as onboarding automation.
| Your situation | Better default | Reason |
|---|---|---|
| Pre-launch product sending under 100 emails a day | Mailgun | The free plan has no expiry; SendGrid's Email API trial ends after 60 days |
| Product with reply-by-email or an inbound support address | Mailgun | Inbound routes are listed on every plan, 5 on Basic and full access on Foundation |
| Open signup form with lots of junk addresses | Mailgun | Validation is a priced feature, 5,000 included on Scale |
| 100,000 transactional emails a month, shared IP is fine | SendGrid | Essentials $34.95 against Mailgun Foundation $75 |
| Receipts plus a monthly product newsletter to 10,000 contacts | SendGrid | $19.95 for 50,000 sends plus $25 for Basic Marketing Campaigns, both from one vendor |
| Dedicated IP needed at 100,000 emails a month | Either | Mailgun Scale is $90 and SendGrid Pro is $89.95, so choose on logs, routing and support |
| Behaviour-triggered onboarding and trial emails | Neither alone | Both send what your app tells them to; use your own jobs or a lifecycle tool such as Customer.io or Loops |
Moving from one to the other
Both directions begin with DNS. Add the new vendor's SPF and DKIM records for your sending domain while the old ones are still in place, confirm the domain verifies, and leave both live for the overlap. Mailgun's Free and Basic plans include a single custom sending domain, so a product that sends from several domains will need Foundation (1,000 domains) before it can finish the move.
Next, bring across the suppression data. Export bounces, complaints and unsubscribes from the old account and import them into the new one before the first send, otherwise people who opted out will receive mail again. Then repoint webhooks: both vendors send event callbacks for delivery, bounce and complaint, but the payload fields differ, so update the handler that marks users as undeliverable and test it against a seed address that bounces.
Move traffic in order of risk. Start with a low-stakes stream such as weekly digests, then receipts, and finish with password resets and invitations once the new sender has a few days of clean history. Keep the old plan active for a full billing cycle. If you are moving from SendGrid Pro or Mailgun Scale and rely on a dedicated IP, plan a gradual ramp on the new IP rather than switching all volume on a single day.
Verdict
Pick Mailgun if the product has inbound mail, validation or per-customer sending needs, or if you want a free plan you can leave running. Pick SendGrid if you mainly send at 50,000 to 100,000 emails a month and want the lowest price on the page, or if a marketing list under the same vendor saves you a tool. For lifecycle emails that follow product behaviour, plan on a separate tool in either case.
Related comparisons: Postmark vs SendGrid, Resend vs SendGrid and Loops vs Resend. If you are leaving SendGrid, the SendGrid alternatives guide lists replacements with prices, and email platforms for developers covers API-first picks. The comparison hub lists every matchup.
Questions teams ask
Is Mailgun cheaper than SendGrid?
Not for plain sending at the stops the pages display. At 50,000 emails Mailgun Foundation is $35 and SendGrid Essentials is $19.95; at 100,000 it is $75 against $34.95. Mailgun's free plan, inbound routes and validations are the reasons teams pay more.
Does Mailgun have a free plan?
Yes: 100 emails a day, one custom sending domain and one day of log retention. SendGrid's Email API offers a 60-day trial of 100 emails a day, while its separate Marketing Campaigns product has a free plan for 2,000 contacts.
Can SendGrid run my onboarding emails?
It will deliver them, and Marketing Campaigns can send to lists. Triggering them from product behaviour is left to your application's own jobs or to a lifecycle tool such as Customer.io or Loops.
Which is better for transactional email in a SaaS app?
Either works. SendGrid is cheaper at 50,000 to 100,000 emails; Mailgun adds inbound routing and validation. Postmark is a third option worth pricing if delivery speed on password resets is the priority.