SendGrid vs Mailgun in 2026

Updated:

Mailgun is the better pick at around 10,000 emails a month, for HIPAA work and for anyone who wants published overage rates. SendGrid is the better pick from 50,000 to 100,000 emails on shared IPs, where it costs less, and for teams that want 24/7 live chat. At 10,000 emails a month Mailgun costs $15 and SendGrid $19.95, because SendGrid has no tier below 50,000. At 100,000 emails SendGrid costs $34.95 and Mailgun $75, on a plan that includes a dedicated IP. On our scoring method the two are close: Mailgun scores 77 of 100 and SendGrid 72 of 100.

Side by side

SendGrid and Mailgun both offer an SMTP relay, an HTTP API, event webhooks, templates and inbound email. They differ on price at each volume, on the free option and on when a dedicated IP becomes available. Compliance is the sharpest split: Mailgun publishes a HIPAA addendum, and Twilio cannot sign a BAA for SendGrid. The table lists the cheapest published plan at each volume, with the plan name under the price. The chart below it plots monthly cost from 1,000 to 1,000,000 emails.

Prices are monthly on monthly billing and exclude sales tax. Ratings are Trustpilot scores read on November 18, 2026, and for some vendors they cover all of the company's products. "Not stated" means the vendor's pages do not say.
Fact Twilio SendGridRated 1.1 out of 51.1 615 reviews on Trustpilot (opens in a new tab) MailgunRated 4.1 out of 54.1 1,555 reviews on Trustpilot (opens in a new tab)
Price
Score 72of 100 77of 100
Free plan Trial, 60 days 100 a day
10,000 emails $19.95Essentials 50k $15Basic 10k
50,000 emails $19.95Essentials 50k $35Foundation 50k
100,000 emails $34.95Essentials 100k $75Foundation 100k
1,000,000 emails $799Pro 1.5M $700Scale 750k
Pricing model Monthly plans Monthly plans
Sending
SMTP relay Yes Yes
HTTP API Yes Yes
Webhooks Yes Yes
Templates Yes Yes
Inbound email Yes Yes
Dedicated IP Included from Pro 100kExtra IPs $30 a month Included from Foundation 100kExtra IPs $59 a month
Trust and support
SOC 2 Yes Yes
Signs a BAA No Yes
EU data region Yes Yes
MCP server No Yes
Support on entry plan ticket, chat ticket
Marketing email Yes No
Monthly cost by email volume for the services on this page
Monthly cost on monthly billing, cheapest published plan that covers each volume. Data checked November 18, 2026.

Is Mailgun cheaper than SendGrid?

Mailgun is cheaper at 10,000 emails a month, $15 against $19.95, and at 1,000,000, $700 against $799. SendGrid is cheaper at 50,000 ($19.95 against $35) and at 100,000 ($34.95 against $75). Mailgun publishes overage rates for every tier, from $1.80 per 1,000 on Basic. SendGrid bills overage but does not publish the rate.

Neither gives much away for free. New SendGrid accounts get a 60-day trial at 100 emails a day, and integrations stop sending when it ends unless the account upgrades. Mailgun lists a free plan at 100 emails a day that keeps logs for 1 day and allows 1 sending domain. No end date is stated, but Mailgun does not call it permanent. Mailgun’s Foundation and Scale plans also start with a free month. To price your own volume, use the cost calculator.

How do sending features and limits compare?

Both include event webhooks, templates, inbound email, scheduled sending and batch sends of up to 1,000 recipients per request. The limits differ. SendGrid schedules up to 72 hours ahead and keeps 3 days of searchable activity on Essentials and 7 on Pro. Mailgun schedules up to 3 or 7 days ahead depending on plan, and keeps 1 day of logs on Basic, 5 days on Foundation and 30 days on Scale.

Plan caps matter at the low end. Mailgun Basic allows 1 sending domain, 1 API key, 1 user and 5 inbound routes, and Foundation raises the domain limit to 1,000. SendGrid caps event webhooks at 2 on Essentials and 5 on Pro, and allows up to 300 dynamic templates per account. Inbound mail runs through SendGrid’s Inbound Parse webhook or Mailgun’s Routes, both fed by MX records on your domain.

Which is better for developers?

SendGrid and Mailgun both offer a REST API and SMTP on ports 25, 465, 587 and 2525. SendGrid has official SDKs in 7 languages and Mailgun in 6, and both publish an OpenAPI spec (SendGrid’s repo is marked beta). SendGrid’s SMTP login is the word apikey with an API key as the password. Mailgun creates SMTP credentials per sending domain and has separate US and EU hosts.

Service SMTP host Ports Username Password
Twilio SendGrid smtp.sendgrid.net 25, 587, 2525, 465 The literal word apikey Your SendGrid API key
Mailgun smtp.mailgun.org (US), smtp.eu.mailgun.org (EU) 25, 465, 587, 2525 An SMTP credential login created per sending domain The password set for that SMTP credential

For testing, SendGrid’s sandbox mode validates a request without delivering it and uses no credits. Mailgun’s test mode also skips delivery, but those messages are still charged. SendGrid’s Mail Send accepts up to 10,000 requests per second, and Mailgun’s messages endpoint allows 80,000 calls per 10 seconds per account. Mailgun has an official MCP server that can send mail, while Twilio’s MCP server only searches the docs. The SMTP ports guide explains which port to use.

Which has more deliverability tools?

Mailgun puts a dedicated IP within reach on a cheaper plan. Its Foundation 100k plan at $75 includes one, and Foundation 50k can buy one. SendGrid includes a dedicated IP only from Pro at $89.95, and trial and Essentials accounts send from shared IP pools and cannot buy one. Extra IPs cost $30 a month each at SendGrid and $59 at Mailgun.

Both automate domain authentication. SendGrid’s automated security adds 3 CNAME records and a DMARC record, then manages SPF and DKIM changes for you. Mailgun’s Automatic Sender Security uses 2 DKIM CNAME records and rotates keys every 120 days by default, and Mailgun lists automated IP warmup from Foundation. We do not measure inbox placement, so this section compares documented features only. The SPF, DKIM and DMARC guide walks through the records.

Which is better for HIPAA, compliance and support?

Mailgun is the one to consider for protected health information. It publishes a HIPAA Business Associate Addendum, while Twilio’s docs say SendGrid is not HIPAA compliant, that Twilio cannot sign a BAA for SendGrid and that SendGrid should not be used for PHI. Both list SOC 2 Type II. Sinch lists ISO 27001 for Mailgun, and Twilio’s ISO 27001 certificate does not cover SendGrid.

Mailgun’s addendum applies only when Mailgun is your business associate and runs for the term of a valid Service Order. Its terms bar PHI without Sinch Email’s prior written consent, and Mailgun does not encrypt uploaded customer data. For EU data, Mailgun lets you choose the region per sending domain, and SendGrid offers EU residency from Pro. SendGrid gives paid plans 24/7 tickets and live chat, while Mailgun adds chat and phone only on Scale at $90.

Which to choose

You send about 10,000 emails a month. Mailgun Basic at $15 undercuts SendGrid’s $19.95 minimum if one domain is enough. See the Mailgun review.

You send 50,000 to 100,000 emails on shared IPs. SendGrid Essentials is cheaper at both volumes. See the SendGrid review.

You want a dedicated IP at 100,000 emails. Mailgun Foundation includes one at $75, below SendGrid Pro at $89.95.

You handle protected health information. Mailgun publishes a BAA addendum and SendGrid cannot carry PHI. See the HIPAA email API ranking.

You want live chat on an entry paid plan. SendGrid has 24/7 chat on paid plans, and Mailgun starts chat at Scale.

You are leaving one of them. The SendGrid alternatives and Mailgun alternatives pages list other services.

Frequently asked questions

Is Mailgun cheaper than SendGrid?

At 10,000 emails a month, yes, because SendGrid has no tier below 50,000 emails. SendGrid Essentials is cheaper at 50,000 and 100,000 emails, and Mailgun is cheaper again at 1,000,000. The pricing section above shows each price.

Does SendGrid still have a free plan?

No. Since March 25, 2025, new SendGrid accounts get a 60-day trial at 100 emails a day instead of a permanent free plan. Mailgun lists a free plan with 100 emails a day, but its pricing page does not say whether that plan is permanent.

Should I switch from SendGrid to Mailgun?

Switch if you need a HIPAA BAA, published overage rates or a dedicated IP on a cheaper plan at 100,000 emails. Stay with SendGrid if you send 50,000 to 100,000 emails on shared IPs or want 24/7 live chat on an entry paid plan. The SendGrid alternatives page covers other options.

Which has better deliverability, SendGrid or Mailgun?

We do not measure inbox placement, so we do not rank either on it. Both automate DKIM setup and sell dedicated IPs, and Mailgun includes one on a cheaper plan than SendGrid does.

Does Mailgun or SendGrid sign a HIPAA BAA?

Mailgun publishes a HIPAA Business Associate Addendum that applies under a valid Service Order. Twilio says it cannot sign a BAA for SendGrid and that SendGrid should not be used for protected health information.

Sources

Prices and features come from each vendor's own pages, and other facts from the pages listed here, read on the dates shown. Prices exclude sales tax.