TTFB (time to first byte): what is a good value?
A good time to first byte (TTFB) is 0.8 seconds or less, and a poor one is over 1.8 seconds, measured at the 75th percentile of real users, according to Google web.dev. TTFB is not a Core Web Vital, but it comes before LCP and delays it.
- web.dev guide: 0.8 s or less is good, over 1.8 s is poor, judged at the 75th percentile.
- TTFB includes redirects, DNS, connection, TLS and server time, not only the server.
- Track it against your own baseline. A sudden jump is often the first sign of trouble.
What does Google say about TTFB?
What is included in TTFB?
TTFB is a sum of several stages, and the slow one is often not the server. Knowing which stage is slow saves time.
| Part | What happens | Typical fix |
|---|---|---|
| Redirects | Each redirect restarts the request | Link directly to the final URL (https, www or not) |
| DNS lookup | Resolving the hostname | Fast DNS provider, sensible TTLs |
| Connection and TLS | TCP and TLS handshakes | HTTP/2 or 3, TLS session reuse, a CDN near users |
| Request to first byte | Server builds and starts the response | Page caching, faster database queries, more CPU |
How do you measure TTFB yourself?
curl -s -o /dev/null -w "dns=%{time_namelookup} connect=%{time_connect} tls=%{time_appconnect} ttfb=%{time_starttransfer} total=%{time_total}\n" https://example.com/
# example output
dns=0.012 connect=0.031 tls=0.075 ttfb=0.312 total=0.340How do you lower a high TTFB?
Work from the measurement toward the fix. Guessing at server changes without timings often moves the problem rather than solving it.
- 01
Measure from more than one place
Field data (CrUX) and lab tools such as WebPageTest or DevTools show different views.
- 02
Remove redirect chains
Every hop adds a full round trip.
- 03
Cache full pages
Serve HTML from a page cache or CDN so the application does not run per request.
- 04
Fix slow server work
Check database queries, plugins and external calls inside the request.
- 05
Compare against your baseline
Alert when TTFB doubles, not only when it crosses a fixed number.
Not the whole story
web.dev notes a server-rendered page can have a higher TTFB but better FCP and LCP than a client-rendered one. Use TTFB to find server and network problems, and LCP to judge what users see.
What to record when TTFB jumps?
- The URL and the time the slowdown began, so you can match it to a deploy or traffic spike.
- Whether the extra time is in DNS, connection, TLS or the server wait, using the curl timings above.
- Whether it is slow for everyone or only one region, which points to a CDN or routing issue.
- Cache status: a cold cache, a purge or a disabled page cache can multiply TTFB.
- Server load and database slow-query logs for the same minutes.
What a TTFB alert rule can look like
- Alert when TTFB is above your own baseline by a large factor for several checks in a row.
- Treat Google 0.8 s as a goal for the 75th percentile, not as a single-check alarm.
- Use the same URL and the same region when comparing before and after a change.
- Record whether the response came from a cache so you compare like with like.
Common questions
What is a good TTFB?
Per Google web.dev, 0.8 seconds or less is a good rough guide, and over 1.8 seconds is poor, measured at the 75th percentile of users. Your own baseline matters more for monitoring than any fixed number.
Is TTFB a Core Web Vital?
No. The Core Web Vitals are LCP, INP and CLS. TTFB is a diagnostic metric that comes earlier in the page load and affects LCP and FCP.
What causes slow TTFB?
Redirects, slow DNS, TLS setup, an overloaded server, uncached pages and slow database queries. The curl timing breakdown shows which stage is slow.
Does TTFB affect SEO?
Indirectly. TTFB feeds into LCP, which is part of Core Web Vitals. Persistent server errors also slow Google crawling, per Google Search Central.
Keep reading
Slow Response alerts
Aepto compares response time with a baseline and sends a Slow Response alert to the Attention queue.