The static versus dynamic question sounds technical and is really a business decision about how often things change and who changes them. Here is the version that helps you choose.
A static site serves pre-built files and is fast, cheap and very hard to hack. A dynamic site builds pages on request from a database, which you need for user accounts, search, personalisation or constantly changing content. Most brochure and marketing sites are better off static or statically generated; anything with logins or inventory needs dynamic.
What the difference actually is
A static site is a set of files sitting on a server. A visitor asks for a page and the server hands it over unchanged. Nothing is assembled, no database is queried.
A dynamic site builds the page when it is requested: query the database, apply the template, send the result. That is what allows content to differ by user, by time, or by what someone searched for.
How they compare
| Static | Dynamic | |
|---|---|---|
| Speed | Very fast, files served directly | Slower, page built per request unless cached |
| Hosting cost | Very low, often free tiers | Higher, needs a server and database |
| Security | Minimal attack surface | Database and application layer to protect |
| Editing | Needs a CMS layer or a developer | Built-in admin |
| User accounts | Not possible without external services | Native |
| Search | Needs a third-party service | Native |
| Scaling | Trivial | Requires planning |
Static site generators sit in the middle
Modern static sites are usually not hand-written files. A generator takes content from a CMS or markdown files, builds every page in advance, and deploys the result.
You get the speed and security of static with a real editing experience. This is why so many marketing sites moved this way, and it is our default for content sites that do not need accounts.
Which to choose
- Static or generated: brochure sites, marketing sites, blogs, documentation, campaign pages, anything where every visitor sees the same thing.
- Dynamic: anything with user accounts, member areas, real-time inventory, site search over large catalogues, or content that differs per visitor.
- Hybrid: increasingly common. A statically generated marketing site with a few dynamic routes for the parts that genuinely need it.
The mistake is choosing dynamic by default because it feels more capable. Capability you do not use is cost and attack surface you pay for anyway.
Frequently asked questions
Is a static website better for SEO?
Not inherently, though static sites tend to be faster and speed is part of page experience. Search engines care about content, structure and links. A well-built dynamic site and a well-built static site can rank identically.
Can a static site have a contact form?
Yes. Form handling is done by an external service or a small serverless function. You do not need a dynamic site for forms, comments, search or newsletter signup; all have static-friendly options.
Is WordPress static or dynamic?
Dynamic by default: pages are built from the database per request. Caching plugins make it behave more like a static site, and it can also be run headless with a static generator building the front end.
Are static sites cheaper to host?
Considerably. Static files can be served from a CDN for very little, sometimes nothing, while dynamic sites need a server and database running continuously. The saving is usually meaningful for small sites.
Can I update a static site myself?
Yes, if it is built with a CMS layer. A modern static setup connects a content management system to a generator, so editors work in a familiar interface and the site rebuilds automatically when they publish.