# Modem vs. Router vs. Gateway: What's the Difference?

> Modem vs. router vs. gateway: a modem connects your home to your provider, a router shares that connection, and a gateway is both in one box. Which do you have?

- URL: https://wifiweekly.com/guides/modem-vs-router-vs-gateway/
- Type: Guide
- Topic: Routers
- Author: Tehseen Arbab
- Published: 2026-11-07
- Last updated: 2026-11-07
- Publisher: WiFi Weekly (https://wifiweekly.com/)

## Short answer

A modem connects your home to your internet provider's network, a router shares that one connection with all your devices and usually runs your Wi-Fi, and a gateway is a modem and router in one box. Fiber homes have an ONT instead of a modem, and 5G home internet, such as T-Mobile's, typically uses a gateway.

## Key takeaways

- Modem: connects your home to the provider's network. On cable internet that's usually over coax. A modem on its own doesn't create Wi-Fi.
- Router: shares the connection with your devices, gives each one a local IP address and usually runs your Wi-Fi network.
- Gateway: a modem and a router in one box. Cable providers such as Xfinity lease gateways with the router built in.
- Fiber uses an ONT in place of a modem. You still need a router or mesh system after it, unless your provider installed a combined unit.
- If you add your own router to a gateway, turn on bridge mode (Xfinity's term) so the gateway acts only as a modem.

---


A **modem** connects your home to your internet provider's network. A **router** takes that one connection, shares it with every device in the house and runs your Wi-Fi. A **gateway** is a modem and a router built into one box, which is what many cable providers, Xfinity among them, rent out. If you have fiber, the box on the wall is an **ONT** (optical network terminal) rather than a modem, and you still need a router after it. If you have 5G home internet, the provider's box is typically a gateway that connects to the cellular network instead of a cable.

Knowing which box does which job tells you what to replace when something is slow, what you can buy yourself, and why adding your own router to a provider's gateway can cause problems.

## What a modem does

A modem is your home's link to the provider. Brightspeed, an internet provider, puts it simply: "A modem connects your home to the internet through the provider's network." Xfinity's explainer adds that it does this "usually through a coax cable connection" on cable service.

What a modem doesn't do matters just as much. TP-Link's support article says modems "require a router for multiple devices and cannot provide their own wireless connection." A modem-only box gives you a wired connection and no Wi-Fi.

Cable modems are built to a DOCSIS version, which sets the top speeds they support. Our [DOCSIS 3.0 vs. 3.1 vs. 4.0 guide](https://wifiweekly.com/guides/docsis-3-0-vs-3-1-vs-4-0-cable-modem/) explains which one your plan needs.

## What a router does

A router builds your home network. Brightspeed describes it as a device that "shares information back and forth between devices, forming a LAN (local area network)," and notes that it "assigns a local IP address to each device on your network and directs the flow of data."

In practice the router is where most of the settings you care about live: your Wi-Fi name and password, the guest network, parental controls, port forwarding and DNS. It's also the part that decides Wi-Fi coverage and speed inside the house, which is why a mesh system replaces the router, not the modem.

## What a gateway does

A gateway does both jobs. In Brightspeed's words, it "combines the function of both the modem and the router into one handy device," so "there's only one device to plug in and configure." TP-Link calls it an "All-In-One" solution.

Xfinity, for example, notes that "when you lease an Xfinity Wireless Gateway, the router is built in." You can also buy a gateway yourself. Retail ones are usually called modem router combos; our [best modem router combo guide](https://wifiweekly.com/guides/best-modem-router-combo/) compares current models.

## Modem vs. router vs. gateway at a glance

| | Modem | Router | Gateway |
|---|---|---|---|
| Main job | Connects your home to the provider | Shares the connection with your devices | Both |
| Plugs into | The provider's line (coax on cable service) | A modem, ONT or gateway | The provider's line |
| Creates a Wi-Fi network | No | Usually (wired-only routers exist) | Yes, on consumer models |
| Gives devices local IP addresses | No | Yes | Yes |
| Typical Ethernet ports | Usually one | Several | Several |

## What about fiber and 5G home internet?

**Fiber.** Fiber homes don't have a cable modem. They have an ONT, which Hitron, a maker of network equipment, describes as "a device that converts fiber optic signals from your Internet provider into Ethernet signals." Hitron calls it "the fiber equivalent of a cable modem," and adds that "a separate router or mesh system is still required to distribute Internet throughout your home." The ONT needs power too: Verizon's Fios support page says "your ONT requires electricity to operate all Verizon Fios services." Some fiber providers combine the ONT and router in one unit, so check what yours installed.

**5G home internet.** The provider's box is a gateway with a cellular connection in place of a cable. T-Mobile's support page for its G4AR and G4SE gateways describes signal bars that show "the strength of the gateway's current connection to the cellular network," lists Wi-Fi 6 (802.11ax) on 2.4 and 5 GHz, and lists gigabit Ethernet LAN ports. If you want better Wi-Fi than the gateway provides, see our [best router for 5G home internet guide](https://wifiweekly.com/guides/best-router-for-5g-home-internet/).

## How to tell which one you have

Look at the box your provider installed, then use these checks:

1. **Read the label.** If it prints a default Wi-Fi network name and password, the box has a router inside. T-Mobile, for example, says its gateway label includes the "default Wi-Fi network name and Wi-Fi password." Since a modem can't provide its own wireless connection, a Wi-Fi label rules out a modem-only box.
2. **Look at the input.** A coax (screw-on) input used for your internet service usually means cable internet, so the box is a modem or gateway (some fiber ONTs also have coax jacks, for TV or MoCA). A fiber line ending in a small box on the wall points to an ONT.
3. **Count the Ethernet ports.** One Ethernet port and no Wi-Fi label usually means a modem or ONT. Several LAN ports plus a Wi-Fi label means a router or gateway.
4. **Search the model number.** The model number on the label, typed into a search engine with "spec sheet," will tell you exactly what the box is.

## Do you need a separate modem and router?

You need both jobs done, but not necessarily two boxes. Xfinity says "the modem and router perform separate, unique functions to run your home internet," and also that "you don't need a separate modem and separate router necessarily," because a gateway covers both.

Separate boxes make sense when you want to upgrade your Wi-Fi without touching the modem, switch to a mesh system, or keep your router if you move from cable to fiber. A gateway makes sense when you want one box and one setup. Our guide to [buying your own router vs. using your provider's equipment](https://wifiweekly.com/guides/buy-your-own-router-vs-isp-equipment/) covers the cost side.

## Adding your own router to a gateway

If you plug your own router or mesh system into a provider's gateway, you end up with two routers, which can cause double NAT and two competing Wi-Fi networks. The usual fix is to switch the gateway into bridge mode so it acts as a modem only. Xfinity's instructions are explicit: "You can use your own router, but you'll need to change some settings on the Wireless Gateway so it only works as a modem," and "you'll need to turn on Bridge Mode to let your personal router handle your home network." Our [bridge mode and double NAT guide](https://wifiweekly.com/guides/bridge-mode-double-nat-own-router/) walks through the steps and what to do if your gateway has no bridge mode.

## Bottom line

The modem (or ONT on fiber) connects you to the provider. The router runs everything inside your home. A gateway is both in one box. When you're troubleshooting or upgrading, figure out which job is the problem first: a slow plan or a dropped connection to the provider points at the modem side, while weak Wi-Fi in a far bedroom points at the router.


## Frequently asked questions

### Do I need both a modem and a router?

You need both jobs done, but not necessarily two boxes. Xfinity says the modem and router perform separate functions, and that you don't necessarily need a separate modem and router because a gateway does both.

### Is a gateway the same as a router?

No. A gateway contains a router, but it also contains a modem. A standalone router can't connect to your provider's cable or phone line by itself; it plugs into a modem, ONT or gateway.

### Can I use my own router with my provider's gateway?

Often, yes. Xfinity, for example, says you can, but you need to turn on Bridge Mode on its gateway so it only works as a modem and your router handles the home network. Other providers have their own steps.

### Do I need a modem for fiber internet?

Not a cable modem. Fiber service uses an optical network terminal (ONT), which converts the fiber signal into Ethernet. You still need a router or mesh system plugged into it, unless your provider supplies a combined unit.

### How do I know if my box is a modem or a gateway?

Check the label and the ports. If the label prints a Wi-Fi network name and password, it has a router built in, so it's a gateway (or a router). A modem-only box has no Wi-Fi network of its own and usually just one Ethernet port.

## Sources

- What's the difference between a modem and a router?, Brightspeed: https://brightspeed.com/help/internet/modems-and-routers/difference-between-modem-and-router
- What is the Difference Between a Gateway, Router and Modem?, TP-Link: https://community.tp-link.com/us/home/kb/detail/412664
- Modem vs. Router, Xfinity: https://www.xfinity.com/hub/internet/modem-vs-router
- Using a router, Xfinity: https://www.xfinity.com/support/articles/using-a-router
- ONT: What It Is & How It Works, Hitron Americas: https://us.hitrontech.com/learn/what-is-an-ont
- Optical Network Terminal (ONT), Verizon: https://www.verizon.com/support/consumer/homephone/service-equipment/ont
- T-Mobile 5G Gateway (G4AR & G4SE), T-Mobile: https://www.t-mobile.com/support/home-internet/5g-gateway-g4ar.html

