# What is the difference between a domain and a subdomain?

> Understand the difference between a domain and a subdomain, with examples, and when you might use a subdomain for part of your website.

Source: https://helpcenter.ruachost.com/domains/guides/difference-between-domains-and-subdomains/

A **domain** is your website's main address, such as `example.com`. A **subdomain** is an extra address you create in front of it, such as `shop.example.com` or `blog.example.com`.

## Domains

A domain name is the easy-to-remember name people type to reach your website, instead of a string of numbers called an IP address. It has two main parts:

- **The name** you choose, for example `abbyskitchen`.
- **The extension** (or top-level domain), for example `.com`, `.ng`, `.com.ng` or `.org`.

You register a domain and renew it regularly to keep it. See [What is a domain name?](https://helpcenter.ruachost.com/domains/guides/what-is-a-domain-name/)

## Subdomains

A subdomain belongs to a domain you already have. You don't register or pay for it separately. You create it in cPanel, and it can show a different website or section.

For example, if you run a catering business at `abbyskitchen.com` and start selling smoothies, you could create `smoothies.abbyskitchen.com` for that side of the business.

Common uses include:

- An online shop: `shop.example.com`
- A blog: `blog.example.com`
- A test copy of your website: `staging.example.com`

To create one, see [Managing subdomains in cPanel](https://helpcenter.ruachost.com/cpanel/domains/managing-subdomains-in-cpanel/).

> **Note:**
`www` is also technically a subdomain. On most websites, `www.example.com` and `example.com` show the same site.

## Related articles

- [What are subdomains, addon domains and parked domains?](https://helpcenter.ruachost.com/domains/dns-and-settings/what-are-subdomains-addon-domains-and-parked-domains/)
- [Introduction to domain names and DNS](https://helpcenter.ruachost.com/domains/dns/introduction-to-domain-names-and-dns/)
