Lithium ion batteries help power many of our devices. (iStock)

Lithium ion batteries show up in all sorts of tech these days, from your phone and laptop to airplanes and electric vehicles. But a voluntary recall of about 2.5 million Samsung Galaxy Note 7 smartphones after reports of battery explosions is raising new concerns about their safety.

Last week the Federal Aviation Administration warned passengers not to turn on or charge the devices during flights -- or even put them in checked baggage. Some international airlines have placed similar restrictions on traveling with the smartphone. And the Consumer Product Safety Commission advised consumers "to stop charging or using the device."

Here’s what you need to know about the lithium batteries that probably power a lot of your tech -- and why they sometimes catch fire.

What are lithium ion batteries, and why are they so popular?

Lithium ion batteries are a bit different from the basic AA batteries you use to power your TV remote. They're rechargeable, often built directly into devices and rely on lithium as their primary fuel.

Lithium ion batteries are especially popular in devices such as laptops and phones because they store energy super efficiently and are slow to lose their charge.

“You get a lot of oomph relative to older technologies that were the same size -- often two to four times the voltage,” explained Stephen Hackney, a professor of materials science and engineering at Michigan Technological University.

How do they work?

Like pretty much all batteries, lithium ion batteries work by storing energy and releasing it through controlled chemical reactions. A lithium ion battery has two electrodes -- places where electricity can enter or leave the battery. One electrode, called the anode, is filled with negatively charged ions. The other electrode, called a cathode, contains positively charged ions and lithium. You can think of the anode and the cathodes like the plus and minus signs you often see on batteries.

When you use a battery, the lithium moves over from the cathode to the anode -- and when you charge it, the lithium moves back over to the cathode. There’s a separator inside that keeps the anode and the cathode from touching because that can trigger mishaps such as fires and explosions.

So what can cause the explosions?

The reason you can shove so much power into lithium ion batteries is that lithium basically “wants to react to almost anything” -- which can lead to explosive results, Hackney said.

But one of the most common reasons the batteries can explode is because of mistakes in the charging process, he said. Inside the devices that rely on the batteries, software tells them exactly how much the batteries should be charged and how fast. If those protocols are set incorrectly, it can destabilize some chemicals inside the battery and cause a chain reaction that researchers call a “thermal runaway” that may lead to fire or explosions.

Overheating can also cause explosions, which is why your phone probably pops up with an alert about needing to cool down when it gets too hot.

Another reason could be shoddy manufacturing or rough user treatment. If unwanted materials, like scraps of metal, accidentally end up inside the battery when it’s being made, they can short a cell of the battery and set off a thermal runaway. So could dropping a device if the impact causes a break in the separator between the anode and cathode.

What happened with the Galaxy Note 7?

It seems like a manufacturing problem. The company reports at least 35 cases where the batteries combusted because of “a very rare manufacturing process error” in which the anode and cathode touched, the company said in a statement on its British website.

The company decided to temporarily pull the phone off the market just two weeks after it was released and is offering replacements to people who already purchased the device.

How often do these types of problems occur?

The good news, according to Hackney, is that they are pretty uncommon, especially among high-end devices, when manufacturers keep a close eye on production quality.

But there have been plenty of high-profile cases. For instance, back in 2006, Dell recalled more than 4 million laptop battery packs over combustion issues. In 2013, the Boeing 787 Dreamliner was grounded by the FAA after reports of fires related to the lithium ion batteries used in the planes. And, a half-million hoverboards, one of the hottest gifts of the last holiday season, were recalled this summer because of lithium ion battery explosions.

Are regulators looking into these batteries?

The government and international organizations already regulate lithium ion batteries in a lot of ways, which is probably one of the reasons we don't see more explosions. For example, the Transportation Department has rules for how to safely ship the batteries.

Other U.S. regulations also call for batteries that end up in consumer goods to go through various safety tests, and the Consumer Product Safety Commission has overseen a lot of recalls involving products with lithium ion batteries. The agency is working with Samsung on a formal Galaxy Note 7 recall in the United States.