StackPulse
live · 2026-07-05Get Pro
~/compare/mailgun vs sendgrid
Verified 2026-07-05refreshed within 30 days2 providers

Mailgun vs SendGrid (Twilio) (2026): pricing, free tier & deliverability

Answer

Mailgun vs SendGrid (Twilio) comes down to free tier, price and what you optimize for. Mailgun has the more generous free tier, and the cheaper paid entry point is $15/mo. Mailgun stands out for flexible routing and inbound processing, while SendGrid (Twilio) stands out for mature feature breadth and scale.

TL;DR
  • Mailgun free tier: 100 emails/day (~3,000/mo), 1-day log retention, 1 custom domain.
  • SendGrid (Twilio) free tier: Permanent free tier discontinued on 2025-05-27. New accounts get a 60-day trial (100 emails/day) only.
  • Mailgun from $15/mo; SendGrid (Twilio) from $19.95/mo.
  • Mailgun for flexible routing and inbound processing; SendGrid (Twilio) for mature feature breadth and scale.
Our top pick
M
Mailgun
Closest operational match to SendGrid
Free tier
100 / day
~3,000 / mo
Entry paid
$15/mo
10,000 / mo
Start with MailgunCompare side by side
Free tiers and prices for Mailgun and SendGrid change without warning. Last verified 2026-07-05.
StackPulse Pro watches every provider's pricing page and alerts you the moment a free tier or price changes — before it breaks your bill.
Watch with Pro
Comparison

Mailgun vs SendGrid: side by side

Free tier, entry price, dedicated-IP cost and deliverability — pulled from each vendor's own pricing page. Sort any column; star a provider to watch it.

ProviderFree tierEntry paidDedicated IPDeliver.Best for
M
MailgunTop pick
www.mailgun.com
100 / day
~3,000 / mo
$15/mo
10,000 / mo
1 included on Foundation 100k / Scale; extra IPs $59/IP/moClosest operational match to SendGrid
S
SendGrid (Twilio)
sendgrid.com
Trial only
60-day, 100/day
$19.95/mo
50,000 / mo
Included on Pro and aboveMature breadth, but no free tier
Star any provider to track its free tier. Get change alerts with Pro →
Building a tool or dashboard? Get this always-current pricing data as a JSON API.Get API access →

Deliverability is StackPulse's editorial estimate, not a measured score. Pricing and free-tier figures are read from each vendor's own pricing page.

Reference

Mailgun: current pricing

What you actually pay on Mailgun today, for context. Source: https://www.mailgun.com/pricing/.

PlanPrice / moIncludedOverage
Free$0100/day (~3,000/mo)
Basic$1510,000 / mo$1.80 / 1k
Foundation$3550,000 / mo$1.30 / 1k
Scale$90100,000 / mo$1.10 / 1k
Reference

SendGrid: current pricing

What you actually pay on SendGrid today, for context. Source: Twilio changelog (twilio.com/en-us/changelog/sendgrid-free-plan): free plan retired 2025-05-27; new accounts 60-day trial (100/day); Email API from $19.95/mo.

PlanPrice / moIncludedOverage
Freetrial only60-day trial only (100/day)
Essentials$19.9550,000 / mometered
Pro$89.95100,000 / mo (dedicated IP)metered
Analysis

Mailgun or SendGrid?

Mailgun and SendGrid (Twilio) take different approaches to transactional email. Mailgun is free up to 100 emails/day (~3,000/mo), then paid plans run $15/mo for 10,000, $35/mo for 50,000, and $90/mo for 100,000, with overage from $1.80 / 1k; dedicated IP: 1 included on Foundation 100k / Scale.

SendGrid (Twilio) no longer has a permanent free tier (new accounts get a 60-day trial at 100/day), then paid plans run $19.95/mo for 50,000 and $89.95/mo for 100,000; dedicated IP: Included on Pro and above. SendGrid (Twilio) is known for mature feature breadth and scale and tight Twilio ecosystem integration.

For a Next.js codebase, the choice usually comes down to free-tier headroom and developer experience versus deliverability guarantees. REST and SMTP. In Next.js, call mailgun.js from a Route Handler. If a handful of emails absolutely must reach the inbox, weight deliverability more heavily; if you want the fastest start, favor the larger free tier and the better SDK. Pricing was verified on 2026-07-05.

Migration

Switch to Mailgun in one Route Handler

Most migrations are a one-call change. Here's the Next.js Route Handler for each top alternative.

app/api/send/route.ts
import { Resend } from "resend";

const resend = new Resend(process.env.RESEND_API_KEY!);

export async function POST(req: Request) {
  const { to, subject, html } = await req.json();
  const { data, error } = await resend.emails.send({
    from: "noreply@yourdomain.com",
    to,
    subject,
    html, // was: sgMail.send({ to, from, subject, html })
  });
  if (error) return Response.json({ error }, { status: 500 });
  return Response.json({ id: data?.id });
}
Why Pro

The free tier you're reading will change

It already has. StackPulse records every pricing move so you're never surprised — here's what changed in this category recently.

2025-05-27Sfree tier removed
SendGrid retired its permanent free tier. New accounts: 60-day trial only.
≈ 2026Mprice upapprox. date
Mailgun raised Basic to $15/mo (10,000) and tightened free-tier log retention to 1 day.
≈ 2026Rnew planapprox. date
Resend added a $35/mo Pro step for 100,000 emails/mo.
Full price-change history across these providers — unlocked on Pro.
Free$0
Full comparison tablesAlways-current pricingUse-case finderMigration snippets
Pro$12/moMost popular
Everything in FreeWatch any providerEmail + Slack change alertsFull price-change historyWeekly digest
Team · API$49/mo
Everything in ProPricing data APIUp to 10 seatsWebhook eventsPriority refresh
Join the Pro waitlist
Change alerts and price history are launching soon. Leave your email and we'll let you in first — no charge today.
FAQ

Questions, answered

At the entry tier, Mailgun is $15/mo and SendGrid (Twilio) is $19.95/mo; for low volume the one with the larger free tier (Mailgun) is effectively cheaper.

Mailgun. Mailgun: 100 emails/day (~3,000/mo), 1-day log retention, 1 custom domain. SendGrid (Twilio): Permanent free tier discontinued on 2025-05-27. New accounts get a 60-day trial (100 emails/day) only.