Hosting & VPS ·
Static Sites vs. WordPress: When Modern Web Frameworks Pay Off

Transparency note: Links marked with an asterisk (*) are affiliate links. If you buy a product or book a service through such a link, we receive a small commission at no extra cost to you. Our comparisons and assessments are not influenced by this. This article currently contains no affiliate links. See our affiliate disclosure.
WordPress powers a huge share of the web, but for many projects it is more machinery than the job requires. Static sites built with generators such as Astro, Hugo or Eleventy need no database and no PHP, and they can often be hosted for free. This analysis compares both approaches on maintenance, security, speed and cost, and shows when switching makes sense – and when it doesn't. Platform limits are taken from official documentation as of November 2026.
WordPress vs. static site at a glance
| WordPress | Static site generator | Headless (hybrid) | |
|---|---|---|---|
| How pages are made | Built by PHP + database on each request (cache helps) | Pre-built HTML files at publish time | CMS for content, static build for the site |
| Maintenance | Core, theme and plugin updates, backups | Almost none on the server | Medium |
| Attack surface | Admin login, plugins, database | Only static files on a CDN | Mostly the CMS |
| Hosting cost | Web hosting or a server | Free tiers available | CMS plan plus static hosting |
| Editing | Browser editor for anyone | Markdown files and Git | Browser editor |
| Best for | Non-technical teams, shops, memberships | Company sites, docs, portfolios, landing pages | Larger projects with a developer |
What "static" actually means
With WordPress, every page view triggers work on the server: PHP starts, queries the database, merges theme and content, and sends the result. Caching softens this but doesn't change the principle.
A static site moves that work to publish time. A static site generator (SSG) reads content – usually Markdown – plus templates and produces finished HTML, CSS and image files once. Any web server or CDN can serve those files directly. There is no database, no admin area on the server and no code running per request.
"Static" does not mean "no features". Contact forms, search and comments can be added with external services or small serverless functions. Only the core is pre-built.
Popular tools
- Astro: a modern framework that ships very little JavaScript by default. Great for content sites and blogs.
- Hugo: an extremely fast generator distributed as a single binary. Good for large sites with thousands of posts.
- Eleventy (11ty): lean and flexible, popular for blogs and documentation.
- Next.js and similar app frameworks: can export static pages but are designed for web apps and are often overkill for a simple company site.
Maintenance: the biggest day-to-day difference
Running WordPress is an ongoing job. Core, theme and every plugin receive updates, some of them security-critical. PHP versions reach end of life, and plugins get abandoned. With twenty plugins, that's a fixed monthly appointment. If you stay on WordPress, keep it lean – our guide on speeding up WordPress without plugin bloat shows how.
A static site has nothing on the server that can go stale. You only update the generator on your own machine, and only when you want new features. A built site keeps running unchanged for years.
The trade-off: editing content is less convenient for non-technical people. Instead of clicking "Update" in a browser, you edit a file and push it with Git. A Git-based CMS such as Decap CMS can add an editing interface, but that's one more component to set up.
Security: a much smaller attack surface
Most compromises of WordPress sites target outdated plugins, weak passwords and exposed login pages rather than the core itself. A static site has none of these: no admin panel on the server, no database, no PHP. An attacker only finds finished files.
The risk doesn't vanish entirely – it moves. Your Git account, your hosting account and any third-party scripts become the weak points. Turn on two-factor authentication for GitHub (or GitLab) and your host, and review which external scripts you embed.
Speed: static starts ahead
Because nothing is computed per request, a CDN serves a static page from the data center closest to the visitor, so server response times are almost always low. Generators like Astro also send JavaScript only to pages that actually need it.
A well-tuned WordPress site with page caching and a CDN can come close. The difference is that WordPress speed must be built and maintained, while for a static site it's the default. Static pages usually only get slow through oversized images or heavy third-party scripts.
Cost: hosting is often free
WordPress needs hosting with PHP and a database, or your own VPS (see our Hostinger vs. Hetzner vs. netcup VPS comparison). Static sites can run on several free tiers. Terms according to the providers' documentation, as of November 2026:
- Cloudflare Pages: requests for static assets are free and unlimited on all plans. The free plan includes 500 builds per month and one concurrent build.
- GitHub Pages: free for public repositories, with a 1 GB maximum published site size and a soft bandwidth limit of 100 GB per month. GitHub states that Pages is not intended as free hosting for an online business or e-commerce site.
- Netlify: the Free plan includes 300 credits per month with a hard limit – when they run out, projects pause until the next billing cycle. Paid plans start at $9 per month (Personal).
Domain costs are the same either way. Keeping your domain at a separate registrar makes switching hosts painless, as explained in why you should separate domain and hosting.
Worked example: a contractor's website with ten pages, changed twice a year. On WordPress you pay for hosting every month and spend time on updates. As a static site on Cloudflare Pages, the only recurring cost is the domain, and updates disappear. In exchange, the initial setup takes more time or a developer's help.
When WordPress remains the better choice
- Several non-technical editors publish content daily.
- Shop, membership area or course platform with user accounts and payments.
- Many features via plugins that you'd otherwise have to build yourself.
- A large existing site where migration costs more than it saves.
When a static site pays off
- Company site, portfolio, landing page: few pages, rare changes.
- Documentation and technical blogs: content is written in Markdown anyway.
- Sites with sudden traffic spikes, for example after press coverage – a CDN absorbs them.
- You want to get rid of maintenance: no updates, no plugin vulnerabilities.
How to migrate
- Export content from WordPress. Converters exist for most generators that turn posts into Markdown files.
- Pick a generator and start from a simple theme.
- Resize images and store them in modern formats such as WebP.
- Add forms and search via an external service or a small function.
- Redirect old URLs to the new ones so search rankings carry over.
- Put the project in a Git repository and connect it to the host. Every push rebuilds the site.
FAQ
Is a static site worse for SEO?
No. Search engines see finished HTML, often delivered faster than WordPress pages. What matters is clean titles and descriptions, a sitemap and proper redirects when you migrate.
Can a static site have a contact form?
Yes, through a form service or a small serverless function on your host. With external services, check where data is stored and processed.
Do I need to code?
Basic HTML, Markdown and Git skills help for the setup. For writing posts, Markdown is enough, optionally with a Git-based CMS as an editing interface.
Can businesses use free static hosting?
It depends on the provider's terms. GitHub Pages explicitly isn't meant for online businesses or e-commerce. Read the terms before you launch.
Who should choose what?
- If several non-technical people maintain content, stay on WordPress and keep it lean.
- If you need a shop or membership area, use WordPress or a dedicated commerce platform.
- If you run a small company site or portfolio, move to a static site with Astro or Hugo and save on hosting and maintenance.
- If you write technical content and already use Git, a static site generator is the natural fit.
- If you're unsure, build your next new landing page statically and compare the effort before migrating an existing site.
