Oct
7

TTFB Explained: What Time to First Byte Means for Your Site

10/07/2026 12:00 AM Yazar: Seovaro Team kategorisinde


TTFB Explained: What Time to First Byte Means for Your Site

When someone opens your website, there is a brief moment where nothing seems to happen. The browser has asked your server for the page, and it is waiting for a reply. The time it takes for that first piece of data to arrive is called Time to First Byte, or TTFB. It is one of the simplest performance metrics you can measure, and it tells you a lot about how responsive your server really is.

In this guide, we will break down what TTFB means, how it is measured, what a good value looks like, and the practical steps you can take to bring yours down.

What Is TTFB?

TTFB stands for Time to First Byte. It measures the time between the moment a browser sends a request to your server and the moment the very first byte of the response comes back. Everything else on the page, images, stylesheets, scripts, still has to download after that, but TTFB captures how quickly your server starts working on the request.

Think of it like calling a restaurant. TTFB is not how long the food takes to arrive; it is how long it takes for someone to pick up the phone and say hello. If nobody answers for ten seconds, the whole experience feels slow no matter how good the kitchen is.

TTFB is usually measured in milliseconds (ms). It is influenced by three things:

  • Network latency: how long the request takes to travel between the visitor and your server.
  • Server processing: how long your server takes to generate the page, run database queries, and prepare the response.
  • Redirects and DNS: how long name resolution and any redirects add before the request even reaches your server.

A slow TTFB means your server is the bottleneck. A fast TTFB means your server answers quickly, and any remaining slowness comes from how the page itself is built. Knowing which one is the problem saves you from fixing the wrong thing.

How TTFB Is Measured

Every browser's developer tools show TTFB in the network tab: it is the waiting time for the initial document request. But your own connection only tells part of the story. Your visitors come from different cities and different networks, so it helps to check your response time from multiple angles.

A quick way to get a first impression of your server's responsiveness is to run an online ping website tool against your domain. It tells you whether your server is up and how fast it answers, which is a useful sanity check before you dig into deeper page-level analysis.

For a fuller picture, combine that with a full page audit. A page speed checker measures how the entire page loads in a real browser, while the PageSpeed Insights checker pulls in Google's field data and lab scores, including TTFB context alongside metrics like Largest Contentful Paint. If the full-page scores look bad but TTFB is fine, your server is off the hook and the page itself needs work.

What Is a Good TTFB?

Google has never published a hard TTFB target, but the widely accepted guideline is:

  • Under 200 ms: excellent. Your server responds almost instantly.
  • 200 to 500 ms: good to acceptable for most sites.
  • 500 to 1000 ms: needs attention. Visitors may notice the delay.
  • Over 1000 ms: poor. The server is a clear bottleneck.

A couple of caveats. First, TTFB depends on where you measure from. A visitor next door to your data center will see a much lower number than someone on the other side of the planet. Second, TTFB is not a Core Web Vital itself, but it feeds directly into them. If your server takes a full second to answer, your Core Web Vitals scores, especially Largest Contentful Paint, will suffer because everything else waits in line behind that first byte.

What Causes a Slow TTFB?

Most slow TTFB values come down to a handful of usual suspects:

  • Slow or overloaded hosting: a shared server that is packed with other sites, or a plan that is too small for your traffic, will answer slowly. This is the single most common cause.
  • Heavy database queries: content management systems pull content from a database on every request. Unindexed tables, bloated plugins, or huge post counts make each query slower.
  • No caching: if every page is rebuilt from scratch for every visitor, the server does the same work thousands of times. Page caching lets the server hand over a ready-made copy instead.
  • Server location: physics matters. A server in Europe answering a visitor in Australia adds hundreds of milliseconds of round-trip time no matter how fast the code is.
  • Excessive redirects: each redirect adds a full extra request cycle before the real page even starts loading.
  • Dynamic rendering per request: pages that are assembled by complex application logic on every single hit will always be slower than static or cached output.

How to Improve Your TTFB

The good news is that TTFB problems usually have clear fixes. Here is a practical checklist, ordered from highest impact to lowest:

  • Upgrade or switch hosting: if your server is slow at the hardware level, no plugin will save you. Move to a host with modern hardware, enough resources, and server-level caching.
  • Enable page caching: cache full pages so repeat requests never touch the database. This alone can cut TTFB from seconds to tens of milliseconds on CMS-driven sites.
  • Use a CDN: a content delivery network serves cached copies from servers close to each visitor, wiping out most of the distance penalty.
  • Optimize the database: clean up post revisions, spam, and transients; add indexes where your queries need them; consider object caching for repeated lookups.
  • Cut down plugins and modules: audit what is actually installed. Every active plugin adds code that runs on each request. Remove what you do not use.
  • Use the latest PHP or runtime version: newer versions are meaningfully faster. Upgrading from an old PHP version can cut processing time dramatically.
  • Reduce redirects: make sure old redirect chains (A to B to C) are collapsed into a single hop from A to C.
  • Enable compression and keep-alive: gzip or Brotli compression and persistent connections reduce the work and round trips involved in each request.

A typical example of what these steps look like in practice:

# Enable gzip compression (Apache .htaccess example)
<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html text/css application/javascript
</IfModule>

# A single direct redirect instead of a chain
Redirect 301 /old-page https://example.com/new-page

After making changes, re-test. TTFB improvements should be visible immediately, since you are measuring the server's raw response rather than a cached browser result. Run the check a few times and look at the median, not a single lucky run.

TTFB vs. Other Performance Metrics

TTFB is only one part of the loading story. It is worth knowing how it relates to the other numbers you will see in speed reports:

  • TTFB measures server responsiveness: how fast the first byte arrives.
  • First Contentful Paint (FCP) measures when the first visible content appears on screen.
  • Largest Contentful Paint (LCP) measures when the main content finishes loading. LCP always includes TTFB, so a slow TTFB guarantees a slow LCP.
  • Time to Interactive (TTI) measures when the page becomes fully usable.

If TTFB is low but FCP and LCP are high, your server is fine and the problem is on the page: too many images, render-blocking scripts, or heavy CSS. If TTFB itself is high, start at the server, because nothing downstream can load before that first byte arrives.

Final Thoughts

TTFB is a small metric with an outsized message. It isolates your server's performance from everything else on the page, so a high value tells you exactly where to look first. Get your server answering in well under half a second with good hosting, caching, and a CDN, and you give every other optimization on your page a much better starting line.

Curious how fast your server actually answers? Run your domain through our online ping website tool to check your site's response time in seconds, then follow up with a full page speed audit to see the complete picture.

FAQ

What does TTFB stand for?

TTFB stands for Time to First Byte. It is the time between a browser requesting a web page and receiving the first byte of the server's response, measured in milliseconds.

Is TTFB a Core Web Vital?

No, TTFB is not one of Google's Core Web Vitals. However, it directly affects Largest Contentful Paint, which is a Core Web Vital, because no content can load before the first byte arrives.

What is considered a good TTFB?

Under 200 milliseconds is excellent, 200 to 500 ms is good, 500 to 1000 ms needs attention, and anything over 1000 ms is poor and points to a server-side bottleneck.

Why is my TTFB high but my page looks fast on repeat visits?

Repeat visits benefit from browser cache, which can hide a slow server. Test in an incognito window or with a fresh audit to see the true server response time.

Can a CDN fix a slow TTFB?

A CDN helps a lot with the network distance part of TTFB by serving cached pages from locations near your visitors. It cannot fix a slow origin server for uncached, dynamic requests, so caching and hosting still matter.