Black Friday: 60% off yearly plans with code BF2026, until November 30. See the deal

Glossary

TTFB: time to first byte

TTFB (time to first byte) measures the time between starting to navigate to a page and the first byte of the response beginning to arrive. web.dev treats 0.8 seconds or less as a rough guide for good and anything over 1.8 seconds as poor.

The short answer
  • TTFB covers redirects, DNS, connection, TLS and the wait for the server.
  • Good is 0.8 s or less. Poor is over 1.8 s, per web.dev.
  • TTFB is not a Core Web Vital, but it limits how early FCP and LCP can happen.

What is included in TTFB?

Components, in order
ComponentTypical lever
RedirectsRemove unneeded redirect hops, such as http to https to www chains
Service worker startupApplies only when a service worker is involved
DNS lookupFaster DNS provider, fewer distinct hostnames
Connection and TLS negotiationReused connections, newer protocols, closer servers or a CDN
Request until first byteServer processing: caching, database queries, application code

Components and thresholds per web.dev: Time to First Byte.

How does TTFB relate to other metrics?

It comes before FCP and LCP

Nothing paints before the first byte arrives, so TTFB sets the earliest point those metrics can occur.

Client-rendered sites feel it more

Single-page apps need markup early before JavaScript fills in the content.

Server-rendered can win anyway

A server-rendered site may have a higher TTFB yet still achieve better FCP and LCP than a client-rendered one.

Judge it at the 75th percentile

web.dev recommends responding quickly enough that the 75th percentile of users gets a good FCP.

Common questions

What is a good TTFB?

web.dev gives 0.8 seconds or less as a rough guide for good and more than 1.8 seconds as poor. It stresses that TTFB is not a Core Web Vitals metric, so a site need not hit the figure if it scores well on the metrics that matter.

How do you improve TTFB?

Work through the components: remove redirects, serve from a location close to users or through a CDN, cache full responses where possible and speed up database queries and application code. Measure again after each change.

Is TTFB the same as server response time?

No. TTFB includes redirects, DNS lookup, connection setup and TLS negotiation as well as the server time. Server response time is only the wait after the request arrives, so TTFB is always the larger figure.

Watch your domains automatically

Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.