The current Xbox Wireless Controller works with Windows 10 and Windows 11 PCs out of the box, either with a USB-C cable or wirelessly over Bluetooth. This guide follows Microsoft's official product information for the controller, Microsoft's Windows Bluetooth pairing guide and the Xbox Accessories app listing, with the controller button sequence credited to Tom's Hardware.
What you need
Microsoft says the Xbox Wireless Controller connects to Windows 10/11 PCs "using Bluetooth, or with the included 9’ USB-C cable", and to Windows 7 or 8.1 PCs with the cable only, where "some functionality" isn't supported. So you need either:
a USB-C data cable (Tom's Hardware notes that older Xbox controllers use Micro USB instead), or
a PC with Bluetooth. If your desktop doesn't have it, see how to add Wi-Fi to a desktop PC.
Tom's Hardware points out that some USB cables only charge and don't carry data, so use a proper data cable if the PC doesn't see the controller.
Option 1: Connect with a USB-C cable
Plug the USB-C end into the controller and the other end into a USB port on your PC.
Windows should detect the controller and set it up automatically.
Press the Xbox button. Tom's Hardware notes that it opens the Xbox Game Bar, which is a quick way to confirm Windows can see the controller.
Option 2: Connect over Bluetooth
On the PC, open Settings > Bluetooth & devices and make sure Bluetooth is on. Microsoft's Windows guide explains how to turn it on from Settings or quick settings.
Turn on the controller by pressing the Xbox button. Tom's Hardware says it will flash slowly.
Press and hold the controller's pair (connect) button until the Xbox button flashes faster. That's pairing mode.
In Windows, select Add device, choose Bluetooth, then select Xbox Wireless Controller and wait for it to connect.
Press the Xbox button to check it works.
Microsoft's Bluetooth guide says the way to make a device discoverable "depends on the device", which is why the controller's own button sequence matters. If Bluetooth stopped working after you fitted a new card, see how to fix Bluetooth not working after installing a Wi-Fi card.
Install the free Xbox Accessories app from the Microsoft Store. Microsoft says it lets you create controller profiles by remapping buttons, swapping sticks and triggers and configuring vibration, and that it can update your controller's firmware. Microsoft's controller page adds that button mapping in the app on Windows 10/11 "requires compatible USB-C cable", so plug the controller in with a cable before you start. Our Xbox Accessories app guide covers the app in more detail.
Using a PlayStation or third-party pad?
For a DualSense, follow how to connect a PS5 controller to PC. Third-party Xbox-layout pads such as the GameSir G7 Pro and 8BitDo Ultimate 2 Wireless use their own adapters and apps, so follow the maker's instructions. Our best PC controllers guide covers the main options, and how to fix controller stick drift helps if an older pad has started to wander.