Where a hub's power comes from
An unpowered hub is bus-powered. Anker puts it plainly: "bus-powered means that the USB hub takes power from your PC or laptop to operate", so "the power output from a single USB port gets distributed all over the hub". A powered hub is different: UGREEN says it "uses its own external power adapter to supply electricity to connected devices", and Wikipedia's USB hub article says a self-powered hub "can therefore provide full power (up to 500 mA) to every port". Those 500 mA figures are the USB 2.0 baseline; USB 3 and USB-C ports can supply more, but a bus-powered hub still has only that one port's supply to share.
When a bus-powered hub is all you need
Anker is clear that "a powered USB hub is not needed when you only need the extension to connect low-power peripherals such as USB flash drives, keyboards, mice, or game controllers". CMD's advice centre draws the same line for "keyboards, mice, and USB flash drives". If that's your desk, a powered model only adds a second cable and a mains plug.
When you actually need the mains adapter
Anker's reason is simple: "external hard drives require more power than keyboards and mice". UGREEN names "external hard drives, printers, and scanners" as the high-power devices that want a powered hub, and CMD adds "monitors" to that list. If your plans include a desk of storage or any of those, buy the powered version from the start and skip the troubleshooting.
How to tell your hub has run out of power
CMD's trigger is "too many power-demanding devices" on an unpowered hub, so a drive that works alone but drops out once a second one goes in fits the pattern. Wikipedia adds that the computer may tell you outright: "if a device requires more units of current than the port it is plugged into is able to supply, the operating system usually reports this to the user".
Two fixes work. Move the demanding device onto a port on the computer itself, which gives it that port's full supply, or switch to a powered hub so every port has its own.
If you are choosing a hub now
Once you know which camp you're in, our best USB-C hub guide covers the models worth considering. If you're not sure a hub is the right box at all, our hub versus docking station explainer is the place to start.
FAQ
Q: Can I just add another unpowered hub to get more power? A: No. A second bus-powered hub in the chain still draws on the same single upstream port, so it splits that one port's supply further rather than adding any.