How many SPF lookups does include:mailgun.org use?

5. One for the include itself, plus 4 inside Mailgun's record (mailgun.org).

That leaves 5 of the 10 lookups SPF allows for everything else in your record (RFC 7208, section 4.6.4).

Other Mailgun includes, measured the same day

IncludeLookups it costs
include:mailgun.org5
include:eu.mailgun.org2

If the mail you send through Mailgun really leaves from the servers covered by a narrower include, the narrower one costs less. Check the provider's own setup instructions for your account before you swap one for the other.

Where the lookups come from

v=spf1 include:_spf.mailgun.org include:_spf.eu.mailgun.org -all
Nested includeLookups it costs
include:_spf.mailgun.org3
include:_spf.eu.mailgun.org1

Check your whole record

curl -O https://raw.githubusercontent.com/truone01/spf-lookup-check/main/spf-check.mjs
node spf-check.mjs yourdomain.com

Or use the online SPF lookup checker. Over the limit? Read how to find the cause and fix it.