Feedback

Time to First Byte (TTFB)

Updated

Check your site's TTFB live from 20 locations and with real-user data: TTFB test How quickly sites respond on each host is shown in the web hosting comparison.

Time to First Byte, or TTFB, measures how long it takes from the moment a visitor starts navigating to your page until the first byte of the HTML response reaches their browser. Nothing can be parsed, discovered or painted before that byte arrives, so TTFB sets the starting point for every loading metric that follows.

From PerfDelta's measurements: In real-user field data (phone, 75th percentile, whole website), 54% of 38,929 websites have a good Time to First Byte and 8% a poor one. The median is 759 ms, with the middle half between 510 ms and 1152 ms. More in the data section below.

Document request latency: the Lighthouse 13 insight

In Lighthouse 13, and so in PageSpeed Insights, a slow server response shows up in the insight Document request latency. It replaces "Reduce initial server response time", "Avoid multiple page redirects" and "Enable text compression" (Lighthouse source code, replacesAudits in core/audits/insights, version 13.5, retrieved 17 October 2026) and checks only the main HTML document: redirects, server response time and whether the document is compressed. The TTFB fixes below are the answer to its server-response row; compression is covered in Enable text compression.

TTFB phases: from navigation start to the first byte

TTFB is often described as "server response time", but the field metric covers more than the server. It adds up every phase between the start of the navigation and the arrival of the first response byte for the main document:

A high TTFB can come from slow application code, but just as often from a redirect chain or from the distance between visitor and server. Measuring the phases separately tells you where to look.

Good TTFB: 0.8 seconds at the 75th percentile

Google publishes the following thresholds for TTFB, assessed at the 75th percentile of real page loads:

RatingTTFB at p75
Good0.8 seconds or less
Needs improvementbetween 0.8 and 1.8 seconds
Poormore than 1.8 seconds

The 75th percentile means that three out of four visits should reach the value. The thresholds are guidance: a site that builds most of its content in the browser with JavaScript needs a faster first byte than one that delivers a complete server-rendered page.

TTFB is not a Core Web Vital, but it moves FCP and LCP

TTFB is not one of the three Core Web Vitals, so it is not assessed as a separate ranking signal. It is a diagnostic metric that sits underneath the loading metrics that do count. Every millisecond of TTFB is also a millisecond of First Contentful Paint and Largest Contentful Paint, because the browser cannot start rendering before it has the HTML. With an LCP budget of 2.5 seconds, a TTFB of 1.5 seconds leaves only one second for loading CSS, fonts and the hero image. When LCP fails despite a well-optimized front end, check TTFB first.

TTFB in lab and field data

Field TTFB from the Chrome UX Report

The Chrome UX Report (CrUX) collects TTFB from real Chrome users over a trailing 28-day window. PageSpeed Insights shows it in the field data section. It includes all the phases listed above. When a single URL has too little traffic, the data is reported for the whole origin instead.

Lab check: server response time in Document request latency

Lighthouse has no TTFB metric in its performance score. Up to Lighthouse 12, the audit Reduce initial server response time (server-response-time) covered the server's share; in Lighthouse 13 it is no longer shown and its check sits in the server response row of Document request latency. That row fails when the server takes more than 600 milliseconds to answer the main document request, while the target the Chrome team names is 100 milliseconds (DevTools source, DocumentLatency.ts). It looks at a narrower slice than field TTFB, since DNS and connection setup are not part of it and redirects are reported in their own row, and it comes from a single test run from one location. A page can pass the lab audit and still show a poor field TTFB because visitors are far away, arrive through redirects or hit uncached pages.

Common causes of a slow TTFB

How to reduce server response time and TTFB

Lighthouse 13 reports a slow first byte in "Document request latency", older versions as "Reduce initial server response time". The fixes below apply to both, in the order in which they usually pay off.

1. Cache the finished page

Full-page caching stores the rendered HTML and serves it without running application code. For content that changes rarely, this is the largest single improvement. Combine it with an efficient cache policy for static assets.

2. Use a CDN that also caches HTML

Many CDNs only cache images, CSS and JavaScript by default. Configure edge caching for HTML as well, so the first byte comes from a location near the visitor instead of your origin server.

3. Remove redirects

Link directly to the final URL in navigation, sitemaps, canonical tags and campaigns. Where a redirect has to stay, make it a single hop to the final destination.

4. Update PHP and add an object cache

Run a current PHP version with OPcache, add a persistent object cache for database results and check whether your plan has enough headroom.

5. Optimize the database and application code

Slow queries are a common culprit on uncached requests. Add indexes for the columns you filter on, remove N+1 query patterns and profile the slowest requests. A slow query log and EXPLAIN show whether a query uses an index or scans the whole table.

6. Right-size the hosting

The hosting class sets a floor that no software can go below. Shared hosting is cheap but gives fluctuating response times once neighbours generate load. A VPS or dedicated server reserves resources, managed hosting ships page and object caching preconfigured, and edge platforms serve prerendered responses close to the visitor. If a page keeps a high TTFB after clean caching and a tuned database, moving up a hosting class is often the most effective single step.

7. Use the waiting time with 103 Early Hints

If your server or CDN supports it, a 103 Early Hints response lets the browser start loading critical resources while the server is still building the page. It does not make the server faster, but it puts the waiting time to use. Keep in mind when you compare values: Chrome counts the 103 response as the first byte, so field TTFB drops once Early Hints are active even if the server needs just as long for the actual page. The time until the final response headers is available as finalResponseHeadersStart in the Navigation Timing API (web.dev, TTFB and Early Hints).

TTFB on WordPress, Shopify and Next.js

On WordPress, a high TTFB usually means pages are built on every request. A caching plugin with full-page caching, a persistent object cache and fewer plugins that run on every page load are the main fixes. Logged-in users and WooCommerce cart pages often bypass the page cache, so test those separately. How TTFB looks across WordPress sites in our measurements is shown in the analysis WordPress TTFB.

On Shopify, the server and CDN are managed by the platform, so your control over TTFB is limited. Focus on avoiding redirects, for example from outdated links or market and language redirects that could point directly to the final URL.

On Next.js and other React frameworks, the rendering mode decides TTFB. Static generation serves prebuilt HTML quickly. Server-side rendering on every request adds rendering and data fetching to the wait. Streaming lets the server send the page shell early while slower parts follow.

Measuring TTFB with DevTools, curl and field data

What real visitors experience shows up in the field data of the Chrome UX Report; the free TTFB test shows it for a single page and for the whole origin, and also measures TTFB live from 20 locations worldwide, broken down into DNS, connection, TLS and server. You can check individual steps yourself in the lab as follows.

In Chrome DevTools, open the Network panel, reload the page, click the document request and open the Timing tab. It separates DNS lookup, initial connection, SSL and Waiting for server response, so you can see which phase dominates.

On the command line, curl reports the same phases. The values are cumulative from the start of the request:

curl -o /dev/null -s -w "DNS:     %{time_namelookup}s\nConnect: %{time_connect}s\nTLS:     %{time_appconnect}s\nTTFB:    %{time_starttransfer}s\nTotal:   %{time_total}s\n" https://example.com/

Run it several times, since the first request may hit a cold cache. Without -L, curl does not follow redirects, so also test the URLs people actually arrive on. In the browser console you can read the TTFB of the current page from the Navigation Timing API:

const [nav] = performance.getEntriesByType('navigation');
console.log('TTFB:', Math.round(nav.responseStart), 'ms');

With 103 Early Hints, responseStart marks the early response; nav.finalResponseHeadersStart shows when the headers of the real page arrived.

PerfDelta tests several pages on mobile and desktop and shows lab and field data side by side, so you can compare the lab server response with the real-user TTFB. How the tool rates these values is described in the methodology. After a fix, lab values react immediately, while field TTFB in CrUX follows over its trailing 28-day window.

Frequently asked questions

What is a good TTFB?

A TTFB of 0.8 seconds or less at the 75th percentile of real page loads is good. Between 0.8 and 1.8 seconds needs improvement, and more than 1.8 seconds is poor.

What is the difference between TTFB and server response time?

Field TTFB covers everything from the start of the navigation to the first response byte: redirects, service worker startup, DNS lookup, connection and TLS setup, and the server's work. Server response time, as in the Lighthouse insight Document request latency, looks only at how long the server takes to answer the main document request.

Does TTFB affect SEO?

TTFB is not a Core Web Vital and not a separate ranking signal. It affects SEO indirectly, because a slow first byte delays First Contentful Paint and Largest Contentful Paint, and LCP is a Core Web Vital.

Why is TTFB high on WordPress?

Usually because WordPress builds each page on every request. Missing full-page caching, many plugins running on each load, slow database queries and underpowered shared hosting are the most common reasons.

What is the difference between TTFB and latency?

Latency is the time a single round trip takes between browser and server. TTFB includes several round trips for DNS, connection and TLS setup, plus redirects and the time the server needs to build the response.

Why does my TTFB differ between lab and field data?

A lab test measures one request from one location. Field data from the Chrome UX Report reflects real visitors on different networks and in different places over 28 days, including redirects and uncached pages.

What PerfDelta's measurements show

In real-user field data (phone, 75th percentile, whole website), 54% of 38,929 websites have a good Time to First Byte and 8% a poor one. The median is 759 ms, with the middle half between 510 ms and 1152 ms.

By industry, the median ranges from 646 ms in Media and publishing to 1054 ms in Manufacturing and industry.

Data as of November 30, 2026, recalculated daily. Source: PerfDelta's own measurements (Chrome UX Report and Lighthouse); details in the website speed statistics and the methodology.

Thresholds and sources

Field data rating (Chrome UX Report, 75th percentile):

MetricGoodNeeds improvementPoor
TTFB≤ 0.8 s0.8 to 1.8 s> 1.8 s

Lab test (Lighthouse):

Sources:

All sources retrieved on October 9, 2026. Thresholds and documentation change; the linked page is authoritative.

Test your site

Run a free scan to see whether this applies to your pages, on mobile and desktop, with lab and field data side by side.

Run a free test

A free account saves your tests and shows how your values change from one test to the next. Website performance monitoring with field data and alerts starts with the Solo plan.

Related audits