Skip to content

High TTFB: What It Is and Why Your Hosting Is the First Suspect

On this page

Last updated: · By

Short answer: TTFB (Time to First Byte) is the time from the moment the browser requests a page until the first byte of the response arrives from the server. According to web.dev, a good TTFB is up to 0.8 seconds and a poor TTFB is over 1.8 seconds. When TTFB is high, hosting is the first suspect: an overloaded or weak server, pages that aren’t served from cache, or a server far from your visitors. You can find the cause in 10 minutes by testing a cached page against an uncached one.

⏱ Diagnosis time: 10–20 minutes · Difficulty: medium · Last checked against web.dev and PageSpeed Insights: 6 Nov 2026

The short version in numbers (as of 6 Nov 2026):

  • Google’s thresholds (web.dev): a good TTFB is up to 0.8 seconds and a poor one is over 1.8 seconds, at the 75th percentile of visitors.
  • I measured my own site from my home connection: a page served from the Cloudflare cache answered with a median TTFB of 0.30 seconds. The same page with the cache bypassed: 1.04 seconds. The difference, about 0.75 seconds, is the working time of the server and WordPress.
  • The network part: DNS, connection and TLS together took about 0.18–0.19 seconds in both measurements, so they are not what changed.
  • WordPress: since version 6.6, the Site Health check warns when the options loaded on every page (autoload) exceed 800KB.
  • WP-Cron: runs on page loads by default. You can turn it off with DISABLE_WP_CRON and run it from a server scheduler.

What is TTFB, and what does it include?

TTFB (Time to First Byte) measures how long it takes the server to start answering. It is not just “server processing time”. According to the web.dev definition, it includes everything that happens before the response starts to arrive:

  • Redirects: every redirect, for example from http to https and from there to www, adds a full round trip.
  • DNS: finding the IP address of the domain.
  • Connection and TLS: opening the secure connection to the server. This is where physical distance is felt the most.
  • Server response time: until the server prepares the page and starts sending it. In WordPress without a cache, this is the time PHP and the database spend building the page.

TTFB is not one of the three Core Web Vitals, but it comes before all of them. Every millisecond of it is added to FCP and LCP. If TTFB is 2 seconds, it is almost impossible to reach an LCP of 2.5 seconds.

TTFB (75th percentile)Google’s ratingWhat it means in practice
Up to 0.8 secondsGoodThe server isn’t holding you back. If the site is slow, look at images and JavaScript
0.8–1.8 secondsNeeds improvementProbably some pages aren’t served from cache, or the server is far away
Over 1.8 secondsPoorThe server is overloaded, weak or has no cache. Here hosting is the main problem

Thresholds per web.dev and PageSpeed Insights, as of November 2026. In PageSpeed they appear in the field data under TTFB, which is labelled there as an experimental metric.

How do you measure TTFB?

In three ways: PageSpeed Insights for real visitor data, the browser’s developer tools, and curl on the command line when you want to break the time into parts. Use at least two.

  1. PageSpeed Insights: in the field data you will see the TTFB of real visitors. In the lab test, the audit called roughly “Reduce initial server response time” shows how long the main request took.
  2. Browser developer tools: press F12, open the Network tab, load the page and click the first request. In the Timing tab, the “Waiting for server response” row is the server response time.
  3. Command line: the command curl -o /dev/null -s -w "%{time_starttransfer}\n" https://example.com/ returns the TTFB in seconds. Run it 5 times in a row and look at the results from the second one onward.

For measuring from several locations around the world and comparing over time, GTmetrix and WebPageTest show TTFB in the waterfall. An explanation of the tools: website speed test. To know what to fix first in a report, see how to read a GTmetrix report.

How do you break TTFB into parts with curl?

You add an output template with curl’s timing variables, and subtract them from one another. That shows how long DNS, the connection, TLS and the server itself took, and tells you where to look. The command works on Linux, Mac and Windows (in PowerShell write curl.exe and write NUL instead of /dev/null):

curl -s -o /dev/null -w "dns=%{time_namelookup} tcp=%{time_connect} tls=%{time_appconnect} pre=%{time_pretransfer} ttfb=%{time_starttransfer} total=%{time_total}\n" https://example.com/

All the variables are measured in seconds from the start of the request, so each one includes everything before it. According to the curl documentation:

VariableMeasured untilHow to calculate the part
time_namelookupUntil the domain name was resolved to an IP addressDNS = the value itself
time_connectUntil the TCP connection to the server (or proxy) was completedConnection = connect minus namelookup
time_appconnectUntil the TLS handshake was completedTLS = appconnect minus connect
time_pretransferJust before the transfer itself startsUsually almost identical to appconnect on HTTPS
time_starttransferUntil the first byte arrived. Includes pretransfer and the time the server spent computing the responseThis is the TTFB. Server = starttransfer minus pretransfer
time_totalUntil the end of the downloadDownload = total minus starttransfer

Note that the “server time” you get from the subtraction also includes one network round trip, because the request has to reach the server and the response has to come back. That is why it won’t be zero even on a very fast server.

A real example: I measured cw-servers.com from my home connection

On 6 Nov 2026 I ran the command 6 times on the homepage of this site, from a home connection, and another 6 times with a random parameter that bypasses the cache. The site sits behind Cloudflare, and the cf-cache-status: HIT header confirmed that the regular request was served from cache. These are the medians, in milliseconds:

PartHomepage from cacheSame page without cache
DNS1812
TCP connection7978
TLS9290
Server time (including one round trip)107855
TTFB297 (range 286–310)1,035 (range 1,013–1,279)

How to read this: the network parts are almost identical in both measurements, about 180 milliseconds, so they are not the problem. The entire difference, about 750 milliseconds, is in the server time row: that is the time it takes to build the page in PHP and the database when it isn’t prepared in advance. This conclusion holds for most WordPress sites. A cache removes most of the TTFB on public pages, and on pages that aren’t cached, such as the cart, checkout and admin dashboard, you have to work on WordPress itself and the server.

This is a measurement from one point, on one evening, so it shows a direction and is not a benchmark. The connection time (about 80 milliseconds) was measured against Cloudflare’s edge server and not against the server where the site sits. More network-time measurements from different regions, including a comparison of nearby and distant data centers, are on the server response time test page.

Why is my TTFB high?

Almost always for one of three reasons: the network (distance, DNS, redirects), a cache that isn’t working, or a server and WordPress wasting time building the page. This test separates them in ten minutes.

  1. Measure a page that should be served from cache (the homepage, a logged-out visitor), several times in a row. If it is still above 0.8 seconds, the problem is in the network (distance, DNS, redirects) or the cache isn’t working.
  2. Check whether the cache is working: in the response headers in developer tools, look for the x-cache header: on Cloudways servers with Varnish it shows HIT when the page was served from cache and MISS when it wasn’t (when Cloudflare is also in front of the server, there is an additional header, cf-cache-status). If it is always MISS, the cache isn’t working, and that is the first fix.
  3. Measure a page that isn’t served from cache: add a random parameter to the URL such as ?nocache=123 (if the cache isn’t set to ignore it), or measure the cart. This is the real working time of PHP and the database.
  4. Count the redirects: in the Network tab, if the first request is a 301 or 302, fix the links so they point straight to the final URL.
  5. Check where the server is: a server on another continent adds a significant connection time for every visitor before the server even starts working.
What you foundThe causeThe fix
A cached page is fast, an uncached page is over 1.5 secondsSlow PHP or database: a heavy plugin, queries, a weak serverRedis and Object Cache Pro, finding the plugin, a stronger server
Even a “cached” page is slow and always MISSPage cache isn’t configured, or is bypassed by a cookieEnable server-side cache and exclude cookies correctly
TTFB is good from Europe, poor from farther awayDistance or routingA server closer to your visitors, a CDN
TTFB jumps only at certain hoursA busy shared server or background tasksDedicated resources, a real Cron instead of WP-Cron
The first request is a 301Unnecessary redirectsUpdate the site URL and the links

What inside WordPress itself raises TTFB?

When an uncached page is slow, the cause is usually one of five: a plugin that runs heavy queries, options loaded on every page, WP-Cron running during browsing, frequent AJAX calls, or a call to an external API while the page is being built. This is how to find each one:

  • A heavy plugin or theme: install Query Monitor (a free plugin with more than 200,000 active installs). For every page it shows the database queries, flags slow and duplicate queries, and groups them by the plugin or theme responsible. Open the slow page while logged in, and look for the component with the most query time. Turn the plugin off when you finish testing.
  • Options loaded on every page (autoload): on every request WordPress loads the options in the wp_options table that are marked for automatic loading. Plugins that were removed leave them behind. According to the WordPress core team, since version 6.6 the Site Health check shows a critical issue when their total exceeds 800KB, and a single option above 150KB is no longer autoloaded by default. Check under Tools > Site Health.
  • WP-Cron: according to the WordPress documentation, WP-Cron runs on page loads and not continuously. On a site with many scheduled tasks, some visitor “pays” for each run. The fix: add define( 'DISABLE_WP_CRON', true ); to wp-config.php and run wp-cron.php from a server scheduler. On Cloudways you do this in the application’s Cron Job Management.
  • admin-ajax and Heartbeat: according to the Heartbeat API documentation, it sends a request to the server every 15 to 120 seconds from every open page. Several editors with an open dashboard, plus plugins that use admin-ajax, create a constant load. In Query Monitor you can see AJAX calls too.
  • External HTTP calls: a plugin that calls an external API (licensing, exchange rates, social networks) while the page is being built adds that service’s response time to the TTFB. Query Monitor shows them in the HTTP API Calls panel.

After every change, measure again with the curl command above on an uncached page. If the “server time” row dropped, you found the cause. If it didn’t move, and the server is busy in the panel graphs too, it’s time for a stronger server or Object Cache Pro.

Why is hosting the first suspect?

Because TTFB happens almost entirely on the server and the network, before the browser has received anything. Most other metrics (CLS, INP, a large part of LCP) depend on what happens in the browser. TTFB is the one metric that happens almost entirely before the browser has received anything, so a browser-side optimization plugin can’t fix it.

On shared hosting, your site shares the processor and memory with dozens or hundreds of other sites. When a neighbor is busy, your TTFB jumps, and you have no way to see or fix it. This is the usual reason for an “unstable” TTFB that is high specifically in the evening hours.

There are also cases where hosting is innocent: a plugin that runs a heavy query on every page, a theme that calls an external API, or a site with dozens of redirects. That is why you diagnose before you switch. For slow PHP there is a tool that shows exactly which function is slowing it down: New Relic on Cloudways.

How do you lower TTFB on a Cloudways server?

If your site is already on Cloudways, or you are testing it on a trial server, these are the four actions with the biggest effect:

  1. Varnish: a server-side cache layer that serves ready-made pages without running PHP. It comes preinstalled on Cloudways servers and works with WordPress and WooCommerce. Enabling it and the exclusions: Varnish on Cloudways.
  2. Breeze: the Cloudways cache plugin, which manages Varnish and the page cache from inside WordPress: the Breeze guide.
  3. Redis and Object Cache Pro: for pages that can’t be served from a cache, such as the cart and the account area. Redis runs on the server by default, and Object Cache Pro is included free from a 4GB server up: Object Cache Pro.
  4. A server location close to your visitors: you choose the cloud provider and data center when you create the server. The options: server locations on Cloudways.

Real numbers from sites that moved, before and after, are in my review: Cloudways review.

Black Friday80% off
80% off 2 months of managed hosting

The code BFCM802 takes 80% off your bill for the first two months (up to $200 off per month), including unlimited free site migrations. New customers only, and only until the offer ends.

The offer ends on December 4, 2026 at 23:59 (UTC+2).

Ends in—days—hours—minutes—seconds
Code:
Grab the 80% now

Start with a free trial, no credit card. Enter the code at checkout and check that it shows up.

After Black Friday: 30% off for 3 months with the code ASAEL. On a large server (above about $444 a month) ASAEL already saves more today. BFCM802 vs. ASAEL calculator

What common mistakes do people make when measuring TTFB?

Measuring while logged in to WordPress: a logged-in user bypasses the page cache, so you will always see a high TTFB. Measure in a private browsing window.

Looking at a single measurement: the first request after clearing the cache is always slow. Measure several times and ignore the first one.

Expecting a CDN to fix the TTFB of dynamic pages: a CDN quickly serves static files and saved pages. The cart, checkout and account area still come from the server.

Upsizing the server when the problem is a plugin: if one page is slow and the rest are fast, the problem is in that page’s code. A monitoring tool like New Relic will show it.

Frequently asked questions

What is TTFB?

Time to First Byte, the time from the moment the browser requests a page until the first byte of the response arrives. It includes redirects, DNS, the secure connection and the server’s working time. A good TTFB is up to 0.8 seconds.

Why is my TTFB high?

Usually because the page isn’t served from cache, because the server is overloaded or weak, or because it is far from your visitors. Sometimes the cause is a heavy plugin or unnecessary redirects. Compare a cached page with an uncached page to know which of them it is.

What is a good TTFB for a WordPress site?

Up to 0.8 seconds according to Google, as of November 2026. A page served from a server-side cache, from a server close to your visitors, usually gets well below that. Over 1.8 seconds is considered poor.

Will a cache plugin lower TTFB?

Yes, for pages that are served from the cache, and that is usually the biggest improvement. It won’t help the cart, checkout and logged-in users. For those you need an object cache like Redis and a server with enough resources.

Does TTFB affect SEO?

Indirectly. TTFB is not one of the Core Web Vitals, but it is part of LCP, which is a Core Web Vital. A high TTFB can also reduce Google’s crawl rate on large sites.

How do you measure TTFB from a specific country?

The simple way is from your own computer, with the browser’s developer tools or with the curl command. The field data in PageSpeed Insights shows the TTFB of your real visitors, including those from your target country. Measure several times and take the middle value.

How do you know whether a high TTFB comes from the server or from the network?

Run curl with the timing variables and subtract: time_starttransfer minus time_pretransfer is roughly the server time, and the rest is DNS, connection and TLS. In my measurement from my home connection, the network part was about 0.18 seconds both with and without cache, and the whole difference was in the server time.

Which plugin helps find what is slowing WordPress down?

Query Monitor, a free plugin in the WordPress repository. For every page it shows the database queries, PHP errors and external HTTP calls, and groups them by the plugin or theme responsible. Turn it off when you finish testing.

Official sources: Time to First Byte (TTFB) (web.dev), About PageSpeed Insights (Google), curl man page, Options API: Disabling autoload for large options, Hooking WP-Cron Into the System Task Scheduler, Heartbeat API (WordPress), Query Monitor, How to Use Varnish at Cloudways and Speed Up Your WordPress Application Using Object Cache Pro (Cloudways Knowledge Base). Written and reviewed by Asael Dreyer · Updated: 6 Nov 2026

Disclosure: this is an independent site, not the official Cloudways site. Some links on this site are affiliate links: if you sign up through them we earn a commission, at no extra cost to you. Full details

Picture of Asael Dreyer
Asael Dreyer

Hi, I'm Asael Dreyer, CEO of an SEO agency that runs hundreds of websites hosted on dozens of Cloudways servers.
Everything you will find here comes from hands-on experience, mine and my teams', straight from the field: from the guides to the recommendations. All to help you get the most out of Cloudways.

More about me →

Need help? Got a question about your server or this guide? Write to us and we will get back to you.

More guides on this topic:
מפריד
Thanks for your message!
We will get back to you soon.
Ready to get started?

Sign up with the coupon code ASAEL