Mailgun vs Twilio SendGrid. Which to choose.

Mailgun and Twilio SendGrid are the two long-standing email APIs for developers. Both send transactional email over an API or SMTP at scale. They differ in what is free, where a dedicated IP appears, and what sits beside the sending API.

By Brady Heinrich · Facts checked

The short answer

Choose Mailgun if you want a free plan that does not expire, a choice of US or EU sending from one account, or email validation and inbound routing in the same service. Choose SendGrid if you want a dedicated IP on a lower-priced tier, a marketing campaigns product for non-developers, or you already build on Twilio. At 50,000 to 100,000 emails a month their list prices are close, so decide on these differences, not on price alone.

Pick Mailgun if

  • You want a permanent free plan: 100 emails a day
  • You need to send through the EU as well as the US from a single account
  • You want email address validation from the same vendor
  • You receive email in your app and want inbound routing

Pick Twilio SendGrid if

  • You want a dedicated IP included on the Pro plan, from $89.95 a month
  • Marketers need their own campaigns tool with automation and signup forms
  • You already use Twilio for SMS, WhatsApp, voice or verification
  • You are happy to start on a 60-day trial and move to a paid plan

Side by side

MailgunTwilio SendGrid
Built forDevelopers who want sending, receiving and validation in one APIHigh-volume senders, with a separate product for marketers
Free optionFree plan: 100 emails a dayFree trial: 100 emails a day for 60 days
Entry paid planBasic from $15 a month for 10,000 emailsEssentials from $19.95 a month
Mid tierFoundation at $35 a month for 50,000 emailsPro from $89.95 a month
Higher tierScale at $90 a month for 100,000 emailsPremier, custom pricing
Dedicated IPDedicated IP pools on Scale1 included on Pro and Premier
RegionsUS or EU sending from one accountEU data residency is listed among its privacy features
Email validation5,000 validations included on Scale; add-on below thatNot covered in the plan text we read
Marketing toolsSending-focused; sister products sold separatelyMarketing Campaigns, from $15 a month
Parent companySinchTwilio
Best forDevelopers who need sending, receiving and validation in one email API, with a choice of US or EU hostingTeams sending high volumes of transactional email, especially those already using Twilio
PricingFree plan with 100 emails a day. Basic from $15 a month for 10,000 emails, Foundation at $35 for 50,000 and Scale at $90 for 100,000; Enterprise by quote. Foundation and Scale are offered free for the first month.No permanent free plan: a free trial sends 100 emails a day for 60 days. Email API plans start at $19.95 a month for Essentials and $89.95 for Pro, with Premier by quote; Marketing Campaigns is priced separately, from $15 a month for Basic and $60 for Advanced.

How Mailgun and SendGrid differ in practice

Both are infrastructure. You verify a domain, get API keys or SMTP credentials, and your application sends mail through them. Tracking, analytics and webhooks for bounces and complaints are part of both.

Mailgun, part of Sinch, keeps its focus on the developer. Every plan has the email APIs, SMTP relay, tracking and webhooks, plus inbound routing so your app can receive mail. Validation, deliverability testing and inbox preview exist as related products. The vendor says it is trusted to send over 600 billion emails a year.

SendGrid, part of Twilio, splits into two products. The Email API and SMTP service is for developers. Marketing Campaigns is for marketers, with editors, segmentation, automation and signup forms. Twilio says the platform delivers more than 200 billion emails every month.

Free tier: a plan or a trial

Mailgun has a free plan with 100 emails a day, ticket support, 1 custom sending domain and 1 day of log retention.

SendGrid offers a free trial that sends 100 emails a day for 60 days with no credit card. After that you need a paid plan.

For a low-volume app that only sends a handful of notifications, Mailgun can stay free. On SendGrid the clock runs out.

Plan prices compared

MailgunSendGrid Email API
Free100 emails a day60-day trial, 100 a day
First paid planBasic, $15 a month, 10,000 emailsEssentials, from $19.95 a month
NextFoundation, $35 a month, 50,000 emailsPro, from $89.95 a month
ThenScale, $90 a month, 100,000 emailsPremier, custom

Mailgun states the included volume on each plan and lists overage rates, from $1.80 per 1,000 emails on Basic down to $1.10 on Scale at 100,000. Foundation and Scale are offered free for the first month. SendGrid's figures are starting prices, and the exact cost depends on monthly volume and features, so check its page at your own volume.

What each plan leaves out

On Mailgun, Free and Basic allow one custom sending domain and one day of logs. The email template builder and 1,000 sending domains start on Foundation. SAML single sign-on, dedicated IP pools, send time optimization and live phone and chat support need Scale.

On SendGrid, dedicated IPs are not part of Essentials; one is included from Pro. The Email API and Marketing Campaigns are priced as separate products.

If you run many client or brand domains, the jump from 1 domain to 1,000 on Mailgun Foundation is the detail to notice.

Deliverability

No provider can fix a poor sending practice. Authenticate with SPF, DKIM and DMARC, send only to people who asked, and remove addresses that bounce. Mailgun's validation service can help clean a list before sending. A dedicated IP helps only once your volume is steady enough to build a reputation. Our glossary entry on email deliverability explains what moves it.

Who each one suits

  • A product team in Europe: Mailgun, for EU sending from the same account.
  • A SaaS app that also receives email: Mailgun, for inbound routing.
  • A company where marketing wants its own campaign tool: SendGrid, with Marketing Campaigns.
  • A team already on Twilio: SendGrid, to keep one vendor.

Switching considerations

Change the API client or SMTP credentials, map templates, and rewrite webhook handlers, since event formats differ. Verify the domain with the new provider, import your suppression list, and move traffic in stages. If you want a newer option to weigh against both, see Resend vs SendGrid and the full SendGrid alternatives list.

The two tools

Mailgun

Email API

An email delivery service for developers, part of Sinch, with email APIs, SMTP relay, inbound routing, address validation and deliverability tools.

Best for

Developers who need sending, receiving and validation in one email API, with a choice of US or EU hosting

Pricing

Free plan with 100 emails a day. Basic from $15 a month for 10,000 emails, Foundation at $35 for 50,000 and Scale at $90 for 100,000; Enterprise by quote. Foundation and Scale are offered free for the first month.

Strengths

  • Send through the US or the EU from a single account
  • Email APIs, SMTP relay, inbound routing, tracking and webhooks on every plan
  • 5,000 email validations, send time optimization and live phone and chat support on Scale
  • The vendor says it is trusted to send over 600 billion emails a year

Limits

  • Free and Basic allow 1 custom sending domain and 1 day of log retention
  • The email template builder starts on Foundation
  • SAML single sign-on and dedicated IP pools need Scale
  • The Optimize and Inspect products are priced separately from sending

Twilio SendGrid

Email API and email marketing

Twilio's email service, sold as two products: an Email API and SMTP service for developers, and Marketing Campaigns for marketers.

Best for

Teams sending high volumes of transactional email, especially those already using Twilio

Pricing

No permanent free plan: a free trial sends 100 emails a day for 60 days. Email API plans start at $19.95 a month for Essentials and $89.95 for Pro, with Premier by quote; Marketing Campaigns is priced separately, from $15 a month for Basic and $60 for Advanced.

Strengths

  • An Email API and SMTP service, plus a separate Marketing Campaigns product with automation and signup forms
  • The vendor says the platform delivers more than 200 billion emails every month
  • A dedicated IP address is included on the Pro and Premier Email API plans
  • Part of Twilio, alongside SMS, WhatsApp, voice and verification products

Limits

  • The free trial ends after 60 days; continued sending needs a paid plan
  • Dedicated IPs are not part of the Essentials plan
  • The Email API and Marketing Campaigns are priced as separate products
  • Exact prices depend on monthly send volume and features

Product and pricing details are taken from each vendor's public pages and were last checked in December 2026. Check the vendor's site before you buy.

Searches comparing the two

  • mailgun vs sendgrid260 a month
  • sendgrid vs mailgun260 a month

US monthly searches, Google Ads keyword data.

Questions

Is Mailgun better than SendGrid?

Mailgun suits developers who want a permanent free plan, EU sending, validation and inbound routing. SendGrid suits teams that want a dedicated IP on its Pro plan, a marketing campaigns product or the wider Twilio platform.

Is Mailgun free?

Yes. Mailgun's free plan includes 100 emails a day, 1 custom sending domain and ticket support. Paid plans start at $15 a month for 10,000 emails.

Is Mailgun cheaper than SendGrid?

At entry level, yes: Mailgun Basic is $15 a month for 10,000 emails and SendGrid Essentials starts at $19.95. At 100,000 emails a month Mailgun Scale is $90 and SendGrid Pro starts at $89.95.

Who owns Mailgun and SendGrid?

Mailgun is part of Sinch, alongside Mailjet and Email on Acid. SendGrid is part of Twilio and is now sold through Twilio's website.

Do Mailgun and SendGrid offer dedicated IPs?

Yes. SendGrid includes one dedicated IP on its Pro and Premier Email API plans. Mailgun lists dedicated IP pools on its Scale plan.

Sources

  1. Mailgun product and pricing pages
  2. Twilio SendGrid product and pricing pages

Keep reading

Building something ambitious? Let's talk.

We reply within one business day.