Domain vs Hosting: What’s the Difference?

A domain name is your website's address, like yourbusiness.com, and costs about $10–$20 a year. Hosting is the server that stores your site and keeps it online, usually $3–$15 a month. You need both, and you connect them by pointing the domain's nameservers at your host.
You keep seeing the words “domain” and “hosting” every time you try to research how to get a website. Most guides treat them as obvious and skip what each one is and why you need both. There are no affiliate links here and no hosting company to sell you on.
What Is a Domain Name?
A domain name is the address people type into their browser to visit your website, like google.com or yourbusiness.com. You do not own it outright; you rent it from a domain registrar for about $10–$20 per year. If you stop paying, someone else can register it.
Think of a domain name as your phone number. It does not contain your conversations or your contact list. It is just the number people dial to reach you. Without it, nobody can find you even if your phone works perfectly.
A domain has two parts. The name you choose (yourbusiness) and the extension (.com, .net, .org, .co). The .com extension is still the most trusted and most recognized. If the .com version of your desired name is taken, consider adjusting the name itself rather than settling for a less common extension. People will instinctively type .com and end up on someone else’s site.
You register a domain through a domain registrar. Popular options include Namecheap, Cloudflare Registrar, Porkbun, and Squarespace Domains (which acquired Google Domains). Prices are similar across registrars for the initial registration, but renewal prices can differ by $5–$15 per year, so check the renewal rate before you buy.
What Is Web Hosting?
Web hosting is the service that stores your website’s files (pages, images, code) on a computer called a server, and makes them available to anyone who visits your domain. Without hosting, your domain points to nothing. Shared hosting for a small site costs $3–$15 per month.
If the domain is your phone number, hosting is the phone itself. The number lets people reach you, but without the actual device, there is nothing to connect to.
There are several types of hosting. For a first website, these are the ones worth knowing:
Shared hosting puts your site on a server alongside hundreds of other websites. It is the cheapest option ($3–$15/month) and works fine for most small sites that get fewer than 50,000 visitors per month. The downside is that a neighbor’s traffic spike can slow your site down temporarily.
Managed WordPress hosting is shared hosting optimized specifically for WordPress. It includes automatic updates, daily backups, and better security. Costs $6–$25/month. Worth it if you use WordPress and do not want to handle maintenance yourself.
VPS (Virtual Private Server) gives you dedicated resources on a shared physical machine. Costs $20–$100/month. Overkill for a first website unless you expect heavy traffic from day one.
For your first site, shared hosting or managed WordPress hosting is the right choice. You can upgrade later without rebuilding anything.
Do You Need to Buy Them Separately?
You can buy them together or separately. Many hosting companies offer a free domain for the first year when you sign up. Website builders like Wix and Squarespace include both hosting and a domain in their subscription. Buying them separately gives you more flexibility but adds one setup step: pointing your domain to your hosting.
Which approach fits depends on your situation:
Buy together if you want the simplest possible setup and do not mind being tied to one provider. The domain and hosting are already connected, so there is no DNS configuration to deal with.
Buy separately if you want to keep your options open. Owning your domain at an independent registrar means you can switch hosting companies without losing your web address. It also protects you from vendor lock-in: if a host disappoints you, you leave and take your address with you.
One important warning: when a hosting company gives you a “free” domain, they sometimes make it difficult to transfer that domain away. Read the transfer policy before you accept. Your domain is your identity online, and you should always be able to take it with you.
How Do You Connect a Domain to Hosting?
You connect a domain to hosting by changing the domain’s nameservers in your registrar’s dashboard to the nameservers your hosting company provides. This tells the internet where to find your website when someone types your domain. The process takes 5 minutes of clicking and up to 48 hours to fully propagate, though most changes take effect within 30 minutes.
Step by step:
Log into your domain registrar (where you bought the domain). Find the section labeled “Nameservers,” “DNS Management,” or “Domain Settings.” Your hosting company will have given you two nameserver addresses when you signed up. They look like ns1.hostingcompany.com and ns2.hostingcompany.com. Replace the default nameservers with these two. Save.
That is the entire process. If your registrar shows a field for “A Record” instead, enter the IP address your hosting company provided. Either method works; nameservers are simpler for beginners because they route everything automatically.
The DNS step trips up more first-timers than any other part of setup. If it trips you up too, most hosting providers have live chat support that will walk you through changing the nameservers while you watch, and some build services handle this part for you. What to do once the domain is connected is covered in the post-purchase checklist
How Much Does Each One Cost Per Year?
A .com domain costs $10–$20 per year. Shared hosting costs $36–$180 per year ($3–$15/month). So the bare minimum annual cost for domain plus hosting is about $50. An all-in-one website builder runs about $204–$468 per year ($17–$39 a month on yearly billing), with hosting included and usually a free domain for the first year.
Watch out for introductory pricing. A headline rate of around $3 a month usually assumes you prepay three years (about $106), and the plan then renews at $9–$12 a month ($108–$144 a year). The real cost is the renewal price, not the promotional price. Our website cost breakdown compares three years of spending across each path.
A realistic first-year budget for a small business site looks like this:
Budget path (self-hosted WordPress): Domain $12 + shared hosting $48 (annual plan) + free theme = $60 total. You handle setup, security, and updates yourself.
Convenient path (website builder): Wix Light at $204/year or Squarespace Basic at $228/year, both billed yearly, with the domain free for the first year. No technical maintenance required.
Hands-off path (someone builds it for you): $500–$700 one-time build fee + $50–$150/year hosting and domain. You get a finished site and only pay for maintenance if you need changes.
Can You Switch Hosting Companies Later?
Yes. If you own your domain at an independent registrar, switching hosting is straightforward: sign up with the new host, migrate your site files and database, update your nameservers, and cancel the old account. Most hosting companies offer free migration assistance for new customers. The process typically takes a few hours with no downtime if done correctly.
That portability is the main reason to keep your domain registration separate from your hosting. Your domain is portable. As long as you control it, you can point it anywhere. If your hosting company raises prices, slows down, or shuts down, you update two nameserver fields and your site is live somewhere else.
If you used a website builder like Wix or Squarespace, switching is harder because your site’s design and content live on their platform. You can export your content as text, but you will need to rebuild the design from scratch on a new platform. That is the trade-off for convenience.
Frequently Asked Questions
Can I get a domain for free?
A lot of hosting plans come with a free domain for year one. Free subdomains (yourbusiness.wordpress.com) are available on free website builder plans. But for a business, a custom .com domain is worth the $12/year investment. A subdomain signals “I have not committed to this yet” to every visitor.
What happens if I forget to renew my domain?
Most registrars give you a grace period of 30–45 days after expiration. During this time you can renew at the normal price. After that, the domain enters a redemption period where renewal costs $80–$200. If you still do not renew, it eventually becomes available for anyone to register. Set auto-renew on and keep your payment method current.
Do I need an SSL certificate too?
Yes, but most hosting companies and website builders include a free SSL certificate (the padlock icon and https:// in the browser bar). If yours does not, free certificates are available through Let’s Encrypt. A site without SSL shows a “Not Secure” warning in browsers, which drives visitors away and hurts your search rankings.
Is it better to buy a domain from my hosting company?
It is simpler but less flexible. Buying from an independent registrar like Namecheap or Cloudflare Registrar gives you full control and typically lower renewal prices. The extra 10 minutes of DNS setup is worth the long-term flexibility.
Sources
- Let's Encrypt · Internet Security Research Group
- Wix plans and pricing · Wix
- Squarespace is increasing prices by up to 26% · PetaPixel, July 17, 2026
More beginner guides
- I Want a Website but Don't Know Where to StartStart here if you have never built a website: the three ways to do it, what each costs, and the order of steps.
- I Bought a Domain Name. Now What?Seven steps in order, from the purchase confirmation email to a site that search engines know about.
- What Pages Does a Website Need?Five pages, what to write on each one, and a ten-point checklist before you hit publish.
- My Website Is Live. Why Can't I Find It on Google?Why new sites stay invisible, the ten-minute fix, and what to check if pages still won't appear.
- How Much Does a Website Cost in 2026?DIY, site builder or done-for-you: real 2026 prices, hidden costs, and a three-year comparison.
- How to Get a Website That Looks the Way You WantFor people who care how it looks: template vs custom, describing your vision, and approving the result.
- Where to Get a Website Built for YouFreelancer, agency, or AI-assisted: real prices, timelines, and five questions to ask before you pay.