There are several reasons a laptop could be having trouble charging. Examine the outlet, cord, and connection first, since these are easily identified and often fixable problems. If you can’t find any issues there, changing your laptop settings or resetting its battery management can sometimes solve the problem. If not, replacing the battery might be unavoidable.

Unplug for a few minutes, then try a different outlet. Unplug the laptop, wait a few minutes, then plug it into an outlet in a different room. Some users report that a laptop power adapter can temporarily stop working to protect itself from a perceived issue with the power supply.[1]
• If your battery is removable, take it out while the power source is disconnected. Hold down the laptop’s power button for two minutes, put the battery back in, and plug it in to a new outlet.

Examine the cord. Examine the entire length of the power cord for tears, dents, and worn-down insulation. If you notice any, or if the power brick is warped or smells like burnt plastic, the cord is probably faulty.[2] You’ll need to purchase a new cord for your laptop.
• Check your warranty before replacing any parts. The cost may be covered under some circumstances.

Inspect the connection. If the cord’s attachment to your laptop wobbles or feels loose, there could be a problem with the connection. Unplug the cord, remove debris with a wooden toothpick, and remove heavy dust build-up with compressed air.
• Bent pins and other damage issues are model-specific. Take the laptop or cord to a computer repair shop. You can look up your model online for repair instructions, but this can be difficult without proper tools, and may void the warranty.

Restart the computer, removing the battery in between. Shut down the computer, unplug it, then remove the battery from your laptop. The battery can usually be accessed from the underside of the laptop, and may have a lock you can turn with a coin, or release by lifting a lever. Leave the battery out for ten seconds, slot it back in, then start up your computer. Plug the laptop in again after start-up and wait ten seconds to see if it works.
• Not all laptops have easily accessible batteries. If there is no obvious battery compartment, just restart your computer without removing the battery.

Let the computer cool down. If your laptop battery feels very hot to the touch, excess heat could be interfering with the charging process.[3] Shut down the computer and let it sit for several minutes to cool down. If you haven’t cleaned your laptop vents recently, blow a can of compressed air into the fan vents at an angle, in short bursts, to remove some dust.
• Do not blow directly into the fan vents, only at an angle, or you could damage the fan.[4]
• If you are comfortable disassembling your laptop, you can use the compressed air to blow away internal dust directly. Look up a guide to disassembly for your model before you begin, and work on a large, clear surface. This will likely void your warranty.

Start up your laptop without a battery. Shut down the computer, remove the battery, and plug the computer in. If the computer won’t turn on, you probably need a new cord. If you can start it up again in this situation, the charging issue is probably due to the battery itself, or your computer’s interaction with the battery. The methods below may fix the problem, or your battery may be dead and require replacement.
• If your laptop battery is not removable, skip this step and try the methods below before taking your laptop to a computer repair store.

Replace the charger. Sometimes the adapter (the box in the cord) is faulty, or despite your best efforts you can’t repair a loose plug. Try borrowing a friend’s charger, or asking an computer store employee to test your charger. If your charger is faulty, buy a new part from a computer or electronics store.