SEO

What is Time to First Byte (TTFB)?

Time to First Byte (TTFB) is the amount of time a browser waits after requesting a page before it receives the first byte of the server's response. It's an early-stage performance measure that happens before any rendering begins, making it a useful diagnostic for server and network issues separate from front-end page weight.

TL;DR

TTFB is how long a browser waits for the server to send back its very first byte, and because it happens before rendering starts, it's the earliest possible signal of a server or network slowdown.

Formula

TTFB = Timestamp of First Response Byte Received - Timestamp of Request Sent

Why It Matters

TTFB matters because it sits at the front of the entire page load timeline, so a slow TTFB delays every other loading and rendering metric that comes after it, no matter how optimized the front-end code is. That makes it the first thing worth checking when overall load time degrades without any recent front-end changes, since it isolates whether the problem is server-side or client-side. It's especially sensitive to backend issues like slow database queries, overloaded servers, or under-provisioned hosting during traffic spikes. Because search engines factor page speed into ranking and user experience signals, a chronically slow TTFB can quietly suppress a site's performance even when the actual page content and design are solid. Monitoring it separately from full page load time helps teams diagnose problems at the right layer instead of guessing.

Example

A page's TTFB jumps from a typical 180 milliseconds to over 900 milliseconds after a traffic spike overwhelms the server's database queries. Because TTFB happens before the browser can even start downloading or rendering the page's actual content, a slow TTFB delays every single other loading metric that comes after it, which is why it's usually the first thing checked when a page's overall load time degrades without any front-end code changes.

Frequently Asked Questions

  • Google's general guidance treats under 200 milliseconds as good, 200 to 600 milliseconds as needing improvement, and anything above 600 milliseconds as poor, though these are broad guidelines rather than hard pass/fail cutoffs.

  • TTFB only measures the wait for the first byte of the server's response, while page load time covers the entire process from request through full rendering, so TTFB is one early component within the larger load time.

  • Common causes include slow database queries, an overloaded or under-provisioned server, lack of caching, network latency between the user and the server, and traffic spikes that exceed server capacity.

  • It's commonly monitored continuously through real-user monitoring or synthetic testing tools, since server load and TTFB can fluctuate significantly by time of day and traffic volume.

  • No, since TTFB happens before any front-end code loads or executes, fixing it requires server-side changes like better caching, a faster hosting tier, database query optimization, or a content delivery network closer to users.