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
| Mailgun | SendGrid Email API | |
|---|---|---|
| Free | 100 emails a day | 60-day trial, 100 a day |
| First paid plan | Basic, $15 a month, 10,000 emails | Essentials, from $19.95 a month |
| Next | Foundation, $35 a month, 50,000 emails | Pro, from $89.95 a month |
| Then | Scale, $90 a month, 100,000 emails | Premier, 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.