TTFB (Time to First Byte): What It Is and How to Improve It
Time to First Byte is the time from sending a request to receiving the first byte of a server response. A key server performance metric that directly affects Core Web Vitals and rankings.
TTFB (Time to First Byte) is the time between sending an HTTP request and the browser receiving the first byte of the server response. A good TTFB is under 800 ms. Affects LCP and overall page load speed.
What is TTFB
Time to First Byte (TTFB) is the time between a browser sending an HTTP request and receiving the first byte of the server response. The metric measures the total latency: DNS resolution time, TCP connection setup, TLS handshake, and server processing time.
Unlike LCP or CLS, TTFB is not part of the official Core Web Vitals set, but it is the most important precursor to all client-side metrics — a poor TTFB automatically degrades LCP and overall page load time.
How to Measure TTFB
- Google PageSpeed Insights — shows TTFB in Lab Data under Server Response Time
- Chrome DevTools → Network → request header → Waiting for server response
- WebPageTest — detailed waterfall diagram with phase breakdown
- Lighthouse in Chrome — audit: Reduce initial server response time
Google Benchmarks
| TTFB | Rating |
|---|---|
| < 800 ms | Good (green) |
| 800 ms – 1800 ms | Needs improvement (orange) |
| > 1800 ms | Poor (red) |
How to Improve TTFB
- CDN and response caching — the most effective method: a cached response from the nearest CDN node is delivered in 10–50 ms
- Server-level caching — Redis, Varnish, or built-in CMS page cache
- Optimizing slow SQL queries and N+1 database issues
- SSR with Incremental Static Regeneration (ISR) instead of full SSR on every request
- Choosing a data center geographically close to your audience
TTFB and SEO
Google officially confirmed that server speed is a ranking signal since 2010. TTFB affects SEO in two ways: directly as one of the page speed signals, and indirectly by degrading LCP, which is part of Core Web Vitals and counted in the Page Experience signal.
Common questions
Discuss your project?
Share your goals and website context — I will suggest a practical next step.