What Is Time to First Byte (TTFB)?

Flavio AmielWritten byFlavio Amiel Founder, Roborank
Updated July 15, 2026

Time to First Byte (TTFB) measures the interval between a browser beginning to navigate to a page and the first byte of the server’s response arriving. It sums redirects, DNS lookup, connection and TLS negotiation, and the server’s own processing time, so it reflects how quickly the origin starts replying before any rendering can begin.

Key Takeaways

How Time to First Byte Works

When a browser navigates to a URL, a series of steps happens before a single byte of HTML comes back. The browser may follow one or more redirects, resolve the domain name through DNS, open a TCP connection, negotiate TLS for HTTPS, and only then send the actual request. The server receives that request, runs whatever code it needs — routing, database queries, template rendering — and finally begins streaming the response. TTFB is the clock that runs across that entire sequence, stopping the instant the first byte arrives.

Because it spans so many phases, TTFB is best read as a waterfall rather than a single figure. Google’s documentation breaks it into redirect time, service worker startup (if one is registered), DNS lookup, connection and TLS negotiation, and the request phase up to the first response byte. Each phase is a candidate for optimization, and the largest one is where your effort pays off. A page with fast server code but a two-hop redirect can still post a poor TTFB purely from the redirect overhead.

TTFB matters for search because it sits underneath the metrics Google actually scores. First Contentful Paint and Largest Contentful Paint — the latter a Core Web Vital — cannot begin until markup starts arriving. As web.dev puts it, TTFB “precedes every other meaningful loading performance metric.” It is especially critical for client-rendered single-page apps, where the browser needs the initial response in hand before it can even start building the page.

The Phases of TTFB

TTFB is the sum of these sequential segments, in order:

Only the last segment is your application’s raw compute time. The rest is network and protocol overhead, which is why a CDN and clean redirects often move TTFB more than backend tuning does.

Example of Time to First Byte

The concrete numbers come straight from Google’s own thresholds. web.dev defines a good TTFB as 0.8 seconds or less and a poor TTFB as greater than 1.8 seconds, with the range between them marked “needs improvement.” Critically, these are not measured on a single lucky load: the guidance specifies the 75th percentile of page loads, segmented across mobile and desktop, so three out of four real visits must land inside the threshold before a site is judged fast.

The reason Google anchors on 0.8 seconds is spelled out in the same documentation: it is a rough budget that leaves enough headroom for the rest of the loading sequence to finish inside the “good” range for First Contentful Paint. In other words, the number is derived from what has to happen after the first byte, not chosen arbitrarily. If TTFB alone eats 1.5 seconds, there is simply no way for FCP or LCP to reach a good score, because those metrics are stacked on top of it.

That framing is the whole practical lesson. TTFB is a ceiling, not a vanity stat. You can inline critical CSS, defer scripts, and compress images perfectly, and the page will still feel sluggish if the server takes 1.8 seconds to answer. This is why performance audits start at the first byte and work outward: fix the floor, then optimize what sits on it.

The thing people get wrong

The trap I see teams fall into is treating TTFB as purely a backend problem — “the server is slow, that’s ops’ job.” Often the biggest chunk of a bad TTFB is spent before the request ever reaches your application code: a chain of redirects (http to https to www to a trailing slash), a slow DNS provider, or a fresh TLS handshake on every request. I have watched a page shave hundreds of milliseconds off TTFB just by collapsing a two-hop redirect into one and putting a CDN in front of the origin, with zero changes to the application. Measure the phases before you blame the database. The waterfall tells you exactly which segment to fix.

Frequently Asked Questions

What is a good Time to First Byte?
Google considers a TTFB of 0.8 seconds (800 milliseconds) or less to be good, and a TTFB above 1.8 seconds to be poor. The value is assessed at the 75th percentile of page loads, so most of your real users should hit the threshold, not just your fastest ones.
Is TTFB a Core Web Vital?
No. TTFB is a diagnostic metric, not one of the three Core Web Vitals. It matters because it is the first component of Largest Contentful Paint, a Core Web Vital, so a slow TTFB directly limits how fast LCP can be.
What causes a high TTFB?
Common causes are redirect chains, slow DNS resolution, connection and TLS setup on every request, slow server-side processing or database queries, and a distant origin server. TTFB is the sum of all these phases, so any one of them can dominate the total.
How do I reduce Time to First Byte?
Cut redirect hops, serve from a CDN close to users, reuse connections, cache server responses, and speed up backend processing. Because TTFB is a chain of phases, profile the waterfall first to find which segment is largest before optimizing it.

The Bottom Line

TTFB is the stopwatch reading at the moment your server first speaks. Everything a visitor sees is queued behind it, so a page that takes two seconds to return its first byte can never feel fast no matter how lean the rest of the build is. Treat it as the floor under every other speed metric, and diagnose it phase by phase rather than as a single number.

Sources

  1. Time to First Byte (TTFB)web.dev (Google)
Roborank does this

Roborank’s site audit flags slow server response and the redirect chains, missing caching, and origin lag that inflate your TTFB — before they drag down your rankings.

Audit your page speed →

Rank & Cash — the weekly SEO breakdown

One practical teardown a week on ranking in search and getting cited by AI. No fluff.