How Does the Body Create Electricity?

Discover the science behind how your body generates and uses electricity for every thought and movement.

Your body generates electricity the same way a battery does: by separating charged particles across a barrier. In every one of your roughly 37 trillion cells, protein pumps embedded in the outer membrane constantly shove sodium ions out and pull potassium ions in, creating an imbalance of electrical charge between the inside and outside of the cell. That tiny voltage difference, maintained around the clock, is the foundation of every nerve impulse, heartbeat, and muscle twitch you experience. The machinery is ancient, surprisingly elegant, and involved in far more than just “sending signals.”

The Pump That Never Stops

The workhorse behind your body’s electricity is a protein called Na,K-ATPase, sometimes just called the sodium-potassium pump. It sits in the membrane of virtually every cell you have, and its job is straightforward: grab three sodium ions from inside the cell, push them out, then grab two potassium ions from outside and pull them in. Each cycle burns one molecule of ATP, the cell’s energy currency. The result is a lopsided distribution of charge: more positive ions outside, fewer inside. That gives the inside of a resting cell a negative voltage relative to the outside, typically around minus 70 millivolts.

That voltage difference is called the resting membrane potential, and it is not just a side effect of housekeeping. The pump actively creates conditions that allow cells to transport nutrients, regulate their internal acidity, and control their own volume. In excitable cells like neurons and muscle fibers, it provides the loaded spring that makes rapid electrical signaling possible.

How Nerves Fire

A neuron at rest is like a cocked mousetrap: energy is stored in the charge separation, waiting to be released. When a stimulus hits the cell and nudges the voltage upward past a critical threshold, specialized proteins called voltage-gated sodium channels snap open. Sodium ions rush into the cell in a flood, driving the internal voltage from negative to positive in less than a millisecond. That sharp spike in voltage is the action potential, the basic unit of electrical signaling in your nervous system.

The sodium channels do not stay open long. Within a couple of milliseconds, they slam shut in a process called fast inactivation, while potassium channels open to let potassium flow back out. The cell quickly returns to its resting negative voltage, ready to fire again. The whole event is over in roughly two milliseconds, which is why neurons can fire hundreds of times per second when they need to.

Why Signals Travel So Fast

An action potential at one spot on a nerve fiber causes enough voltage change to trigger the adjacent patch of membrane to fire, creating a chain reaction that races along the nerve. In thin, unmyelinated fibers, this process is relatively slow. But many of your nerves are wrapped in myelin, a fatty insulating sheath with small gaps called nodes of Ranvier spaced along the fiber. At those gaps, ion channels are packed tightly together.

The insulating myelin between nodes has a much lower electrical capacitance than the exposed membrane at the nodes. When one node fires an action potential, the resulting depolarization charges the myelin sheath at the near end of the next segment, and because myelin charges so quickly, that depolarization propagates in a feed-forward fashion to the far end. The next node begins to depolarize before the membrane between them has fully responded. The effect is that the signal appears to jump from node to node, dramatically increasing speed while using less energy. Recent modeling work has refined this picture, showing that what looks like a clean jump is actually a pattern of gradually attenuating waves within each internodal segment, with each successive node’s response appearing displaced back in time.

The Heart’s Built-In Pacemaker

Your heart does not wait for the brain to tell it to beat. A small cluster of cells in the right atrium, called the sinoatrial node, generates its own rhythmic electrical impulse about 70 times a minute. These pacemaker cells have ion channels that gradually let positive ions leak inward during the resting phase, slowly pushing the voltage upward until it hits threshold and triggers an action potential. That wave of depolarization then spreads through a specialized conduction network to the rest of the heart muscle, coordinating the contractions that pump blood.

A key player in this automatic rhythm is a current researchers call the “funny” current, named because it behaves opposite to most other voltage-gated currents: it activates when the cell’s voltage drops rather than rises. That quirk is what keeps the cycle going. After each heartbeat repolarizes the cell, the funny current starts pushing the voltage back up again, ensuring the next beat follows reliably. Research over several decades has confirmed that this current is central to both the generation of the heartbeat and the way your autonomic nervous system speeds it up or slows it down.

From Electrical Signal to Muscle Movement

When a nerve impulse reaches a muscle fiber, it triggers an action potential that races along the muscle cell’s surface membrane and dives into a network of tiny infoldings called T-tubules. Deep inside the fiber, voltage-sensing proteins in the T-tubule membrane detect the change in voltage and mechanically interact with calcium-release channels on the internal calcium storage compartment, the sarcoplasmic reticulum. Calcium floods into the muscle cell’s interior, and that calcium is the direct trigger for the contractile proteins to slide past each other and shorten the fiber.

This chain of events, from electrical signal to physical contraction, happens so quickly that you are not aware of any delay between deciding to move and actually moving. The entire sequence from action potential to calcium release takes just a few milliseconds. Afterward, the calcium gets pumped back into storage, the muscle relaxes, and the system resets.

The Gut Has Its Own Electrical Rhythm

Your digestive tract has an electrical life of its own, largely independent of your brain. Specialized cells called interstitial cells of Cajal, scattered throughout the walls of your stomach and intestines, act as pacemakers for your gut. They spontaneously generate rhythmic electrical waves, called slow waves, that set the tempo for the contractions that mix and push food along. These slow waves determine how fast peristalsis moves and in which direction.

Single-cell recordings have confirmed that an individual Cajal cell can produce spontaneous contractions and a rhythmic inward current on its own, establishing that the pacemaker function resides in the cells themselves rather than being imposed by the nervous system. The slow waves depend on calcium-activated chloride channels, which open in response to local calcium signals and produce a sustained plateau of depolarization that drives the muscle to contract.

How Your Senses Convert the World into Electricity

Every sensation you experience, from sound to touch to light, involves converting some physical stimulus into an electrical signal that your brain can interpret. The mechanisms vary, but the principle is the same: a specialized receptor cell opens ion channels in response to a specific stimulus, generating a voltage change that gets relayed to neurons.

In your inner ear, hair cells have a tiny bristle-like structure on their surface called a hair bundle. When sound waves cause that bundle to deflect, it physically pulls open ion channels at the tips of the bristles. Ions rush in, the cell depolarizes, and it releases chemical signals to the auditory nerve. In the retina, the story is inverted: photoreceptor cells are actually depolarized in the dark, with ion channels held open. When light hits, a chemical cascade shuts those channels, causing the cell to hyperpolarize. That change in voltage alters the rate at which the photoreceptor signals to downstream neurons. Your retina, in other words, signals not by turning current on, but by turning it off.

Electricity Beyond Signaling

Body electricity is not limited to nerves, hearts, and muscles. Voltage gradients across cell membranes serve as instructive signals during embryonic development, controlling whether cells divide, migrate, or take on a specialized identity. Changes in the resting membrane potential of non-neural cells help set the polarity of body axes, shape the face during development, and even trigger limb regeneration in animals capable of it.

Wound healing offers a vivid example. When you cut your skin, the disrupted layer of cells immediately generates a small electric field at the wound edge. Researchers have known about these wound-generated fields for over 150 years, but more recent work has shown that the electric field does not just passively exist: it actively directs the migration of cells toward the wound. In experiments where multiple directional cues compete, the electric field overrides them all.

Even inside individual cells, a different kind of electricity is at work. Mitochondria, the organelles that produce most of your ATP, do so by using protein complexes to pump protons across their inner membrane. This creates a voltage gradient across the mitochondrial membrane, and the energy stored in that gradient is what drives the molecular turbine that synthesizes ATP. So the electricity your cells use for signaling is itself produced by a smaller electrical process inside each cell.

When the Electrical System Malfunctions

Because so much of your body’s function depends on ion channels opening and closing at the right time, mutations in the genes that encode those channels can have serious consequences. A group of inherited conditions collectively called channelopathies illustrate this clearly. Long QT syndrome, Brugada syndrome, and catecholaminergic polymorphic ventricular tachycardia are all caused by mutations in cardiac ion channel genes. These mutations alter the timing or magnitude of the currents that shape each heartbeat, creating electrical instability that can trigger life-threatening arrhythmias, sometimes with no warning and in the absence of any structural heart disease.

In long QT syndrome, the balance tips toward currents that keep the heart cell depolarized for too long. That extended action potential increases the window during which dangerous re-entrant circuits can form, and differences in how quickly different regions of the heart repolarize create the substrate for a chaotic rhythm called torsade de pointes. Another channelopathy, CPVT, involves not the channels that shape the action potential itself, but the calcium-release channels inside the cell. Gain-of-function mutations in these channels cause calcium to leak out of storage at the wrong time, generating stray electrical impulses that can trigger a dangerous cardiac rhythm during exercise or emotional stress.

Electric Eels and Sharks

Humans are far from the most electrically impressive animals. The electric eel can discharge roughly 100 watts of power, enough to stun prey or deter predators. It does this not with some exotic mechanism but by scaling up the same principle your own cells use. Thousands of cells called electrocytes, stacked in series along the eel’s body, each produce a small ion-gradient-driven voltage. Connected end to end, those tiny individual voltages add up to hundreds of volts. Researchers have even built artificial soft power sources that mimic this architecture using stacked hydrogels, generating voltages in the same range.

Sharks and rays, meanwhile, use bioelectricity for detection rather than attack. Their heads are studded with jelly-filled pores called ampullae of Lorenzini. Weak electric fields from nearby prey cause receptor cells at the base of these pores to generate graded electrical responses that are amplified through a positive-feedback mechanism, producing signals much larger than the original input. The jelly filling the pores has unusual electrical properties that further aid this detection.

An Ancient Innovation

The ion channels that make your body’s electricity possible have an extraordinarily deep evolutionary history. Molecular studies of the gene family that encodes voltage-gated ion channels show that ancient duplication events gave rise to three major groups: one that includes sodium and calcium channels, another that includes potassium channels, and a third comprising cyclic-nucleotide-gated channels. More strikingly, voltage-gated sodium channels, the ones that drive the rapid upstroke of your nerve impulses, evolved from calcium channels and were already present in the common ancestor of animals and their closest single-celled relatives, the choanoflagellates. That means the basic molecular toolkit for electrical excitability predates neurons, muscles, and even multicellular life.

This makes intuitive sense when you consider that even single-celled organisms need to sense and respond to their environment. The ability to rapidly change membrane voltage gave cells a way to react to stimuli on a timescale of milliseconds rather than the much slower pace of chemical diffusion. Once multicellular life evolved, that same machinery was repurposed and refined for long-distance communication between cells, eventually producing the nervous systems we recognize today.

External Fields and Your Internal Wiring

Given that your body’s electrical signaling depends on voltage-sensitive ion channels with exquisitely tuned gating properties, a natural question is whether external electromagnetic fields can interfere. Research has shown that external fields can affect neuronal ion channels at multiple levels, altering gating behavior, ion conductance, and even gene expression of channel proteins. One proposed mechanism is that oscillating external fields force mobile ions near the cell membrane to oscillate in sync, and that coordinated movement exerts forces on the voltage sensors of ion channels, causing them to open or close at the wrong times.

Whether this matters for everyday health is a different question, and one that remains contentious. The field intensities involved in most laboratory demonstrations are often far higher than what you encounter from household electronics or cell phones. But the research does underscore a basic truth about your body’s electrical system: it is sensitive by design. The same precision that allows a sodium channel to open in response to a fraction-of-a-volt change in membrane potential is what makes these channels theoretically vulnerable to outside interference. The engineering tradeoff between sensitivity and susceptibility is not unique to biology, but the body navigates it remarkably well under normal conditions.