Stuck waiting on a slow server before anything appears? Time to first byte is the delay before the first byte of your page arrives. Lower it by trimming redirects, connection setup and server work.
This guide sits inside the wider topic of web performance optimization, and it covers the very first step of every page load.
| Item | Value |
|---|---|
| Good TTFB | 0.8 seconds or less |
| Poor TTFB | More than 1.8 seconds |
| Percentile used for rating | 75th percentile |
| Fast example server response | 217 milliseconds |
| Slow example | 3.1 second TTFB inside a 5.7 seconds page load |
The thresholds come from web.dev’s TTFB guide (last updated November 18, 2025) and the examples from DebugBear’s docs. Figures can change, so check the source before you rely on them.
What time to first byte actually measures
TTFB is the time between starting to navigate to a page and the moment the first byte of the response begins to arrive. According to web.dev, for requests for an HTML document it precedes every other meaningful loading performance metric.
The clock covers more than the server’s thinking time. It is the sum of these phases:
- Redirect time
- Service worker startup time, if one applies
- DNS lookup
- Connection and TLS negotiation
- The request itself, up to the point where the first byte of the response arrives
DebugBear names four core components: DNS lookup, TCP connection, SSL connection and HTTP request time. Download time is not part of TTFB, because it covers every byte of the response rather than just the first one.
Because the first byte gates everything else, a slow response here delays all later loading metrics.

What is a good TTFB score?
As a rough guide, web.dev says most sites should aim for a TTFB of 0.8 seconds or less. Values greater than 1.8 seconds are poor, and anything in between needs improvement.
These ratings are judged at the 75th percentile. DebugBear explains that the value you see in PageSpeed Insights is the one that 75% of page loads were faster than.
The thresholds are a rough guide, not a pass mark. web.dev points out that TTFB is not a Core Web Vitals metric, so meeting the “good” level matters only if a slow response stops you scoring well on the metrics that do count. A server-rendered site can even have a higher TTFB yet better FCP and LCP values than a fully client-rendered one, as its guide explains.
Does TTFB affect search rankings?
Not directly. DebugBear says Google does not use it as part of its search rankings, yet TTFB does impact Largest Contentful Paint, and a slow server response can still hurt your SEO.
How to measure TTFB
You can measure it in the lab or in the field, and the two views answer different questions. web.dev lists these tools:
- Field: the Chrome User Experience Report and the web-vitals JavaScript library
- Lab: the network panel in Chrome’s DevTools, and WebPageTest
In code, the Navigation Timing API gives you the value for the page request. A PerformanceObserver that listens for a navigation entry exposes responseStart, and the web-vitals library wraps the same idea in an onTTFB call.
Resource requests have a TTFB too. Resources hosted on cross-origin servers can add latency because connections must be set up to those servers, and in the field they are not accurately measurable unless those servers send a Timing-Allow-Origin header, per web.dev.
Seeing the effect makes the numbers concrete. DebugBear’s example shows a slow document request with a 3.1 second TTFB inside an overall page load of 5.7 seconds, against a server that responds within 217 milliseconds on a page that is fully loaded in under half a second.
How to lower time to first byte
The web.dev guide sums it up: reducing latency in connection setup time and on the backend can lower your TTFB. Work through these steps in order:
- Remove redirects. Every hop happens before the real page is requested, and DebugBear counts them in its full TTFB measurement. One practitioner in a web-vitals-feedback thread reported that dropping two click-tracking redirects improved TTFB, LCP and FCP.
- Shorten connection setup. Third-party hosts for key files force the browser to open new connections. If you serve assets from an edge network, the explainer on what is a cdn covers how that works.
- Speed up server processing. WP Engine describes this phase as the time spent querying the database and generating the initial HTML, and says overloaded servers and inefficient queries can increase it significantly.
- Send something early. web.dev notes there is real value in sending data back early if the full response will take more time, for example with Early Hints or by flushing the head of the document first.
Server speed also touches crawling. The same WP Engine post says Gary Illyes of Google noted that slow database queries can reduce crawl rates.
A fast first byte is only the start. Most pages still load further files after the document, so the next job is to eliminate render blocking resources that hold back what visitors see, as DebugBear points out.
Why TTFB numbers differ between tools
TTFB is an overloaded term, and the same page can produce different values depending on where a tool starts its clock. DebugBear separates three views:
- HTTP Request TTFB: only the HTTP request itself
- Full TTFB: includes connection setup and redirects
- Document Duration: the HTML request including download time
Lighthouse calls the narrower version server response time. The Full TTFB is what Google reports in its CrUX dataset.
Early responses add confusion. web.dev states that a 103 Early Hints response counts as the “first bytes”, and that Chrome moved TTFB to the final document response in Chrome 115 before reverting it in Chrome 133. That is why the same site can look quick in one tool and slow in another.
DebugBear’s advice is to prefer user experience metrics such as Largest Contentful Paint when tools disagree. It gives the example of a host-ranking site that reported great TTFB for Shopify while only reporting Early Hints, not actual HTML delivery.
Frequently asked questions
Do redirects and DNS count toward TTFB?
Show answer
Yes. Both sit before the first byte, so a long redirect chain or a slow lookup raises the number even when your server answers instantly, as DebugBear’s docs describe.
Can I check TTFB for images and scripts?
Show answer
You can, using the Resource Timing API inside a PerformanceObserver. web.dev warns that a cached resource can report a responseStart of zero, so skip those entries.
What if Early Hints make my TTFB look great?
Show answer
Then the figure may not reflect real HTML delivery. A practitioner in a 2023 thread said they knew of no way to track the true HTML response time when 103 responses are involved, so they watched FCP instead.
Does a fast TTFB mean a fast page?
Show answer
No. It only tells you the HTML has started to arrive. DebugBear shows a filmstrip of a site with a fast TTFB that still takes a long time to load, so you also need to check what happens after the first byte.



