What Are the Types of Laptop Power Cords?
Laptop power cords come in a few types: a barrel plug that fits only its own laptop, a USB-C cable that carries power and data, and a magnetic connector such as MagSafe that pulls away instead of dragging the laptop. The right cord matches the port on your laptop and the charger that came with it. Check the laptop's manual for the port type before you buy a replacement.
Barrel plugs fit one laptop family
A barrel plug is a round pin that slides into a round socket on the laptop, and each maker sizes its own plug. A barrel cord made for a different brand does not fit that socket, and a loose plug can stop charging. Read the model number on the laptop or the old charger, then match the plug shape and the charger that came with the laptop.
USB-C cords carry power and data
A USB-C cord has the same oval plug on both ends and can carry power, data and sometimes video through one cable. Not every USB-C port charges the laptop, so check the manual or the port markings for charging support before you rely on it. The MacBook Air here charges through MagSafe and also has two Thunderbolt 4 ports, which use the USB-C shape.
Magnetic cords pull away cleanly
A magnetic cord such as MagSafe snaps onto the side of the laptop and pulls free if someone trips on the cord. The magnet holds the cord in place during normal use, and the cord comes away instead of dragging the laptop off the desk. Wipe the connector clean and check that it sits flat against the laptop before you plug it in.
Match the charger to the laptop
Use the charger that came with the laptop, or a replacement with the same plug shape and the same maker. A cord with the wrong plug does not fit, and a charger made for another laptop may not charge it. If the laptop is still under warranty, contact the maker before you open it or replace parts inside it.
What you need

Apple MacBook Air 13-inch Laptop
A 13.6-inch MacBook Air with an M5 chip, 16GB of unified memory and a 512GB SSD, with two Thunderbolt 4 ports and a MagSafe charging port.
View on Amazon
Apple MacBook Neo 13-inch Laptop
A 13-inch MacBook Neo with an A18 Pro chip, 8GB of unified memory and a 256GB SSD, with up to 16 hours of battery life stated by the maker.
View on Amazon
Dell 15.6 Laptop
A 15.6-inch Dell laptop with an Intel Core Ultra 5 processor, 16GB of memory and a 512GB SSD, with a backlit keyboard and Wi-Fi 6.
View on Amazon
HP 17-inch Laptop
A 17.3-inch HP laptop with an AMD Ryzen 5 processor, 16GB of memory and a 512GB SSD, with a numeric keypad and HP Fast Charge.
View on AmazonThese come from our ranked list Best Laptop, which compares them spec by spec.
FAQ
Can I charge a laptop through any USB-C port?
Not always. A USB-C port only charges the laptop if the maker built it for charging, so check the manual or the port markings first. The MacBook Air here uses a MagSafe charging port as well as Thunderbolt 4 ports.
What cord does a MacBook Air use?
The MacBook Air in this guide has a MagSafe charging port and two Thunderbolt 4 ports, which use the USB-C shape. Use the MagSafe cord that came with it, or check the manual before you use another cord.
Can I use another brand's barrel charger?
No. Barrel plugs are sized by each maker, so a cord from another brand does not fit the socket. Match the plug shape and use the charger that came with the laptop.




