How Genes Are Switched On and Off

Every cell in your body carries the same DNA — the same ≈20,000 genes — yet a neuron, a muscle cell and a skin cell are utterly different. The difference is which genes are switched on. Watch a single gene: a transcription factor docks on its promoter, RNA polymerase loads and reads it, and finished mRNA transcripts stream out of the nucleus. Then break it — clamp on a repressor, pack the DNA away with methylation and tight histones, or send in a hormone that flips the switch from outside the cell.

Try this: start on Gene ON and watch transcripts stream out, then hit Silenced and see the histone spools clamp shut and the methyl tags snap on — then press 💊 Demethylating drug and watch the same gene wake back up.

Diagram is illustrative — not to scale.
CYTOPLASM CELL NUCLEUS nuclear pore (mRNA exit) PROMOTER start GENE (coding region) Me Me Me Me Me Me TF TF STOP RNA Pol hormone landing pad for the switch Histone spools (nucleosomes) — 147 bp of DNA wound round each one spread apart = open & readable  •  clumped = packed away & silent Steroid hormones & vitamin D slip straight through both membranes into the nucleus. Same DNA in every cell — only which genes are ON makes a neuron differ from a muscle cell.

Live gene readout

Transcripts made
0
finished mRNA copies exported
Gene state
OFF
Chromatin openness
0% accessible to the machinery
DNA methylation
0% of promoter CpG sites tagged
RNA Pol II elongation
0 nt/s

What's happening

Resting gene — press play and watch the switch.
transcription factor RNA polymerase mRNA transcript repressor methyl tag histone spool

Real: promoters, transcription factors, RNA polymerase II (elongating at roughly 20–80 nucleotides per second), DNA methylation at CpG sites, histones wrapping ~147 base pairs each, and hormone/nuclear-receptor signalling are all genuine molecular biology. Illustrative model: the transcript count, the chromatin-openness and methylation percentages, and the exact timing are a teaching simplification — a real gene has thousands of base pairs and many polymerases loading at once.


The Science in Plain Language

Same DNA, wildly different cells

Here is the puzzle that gene regulation solves. The fertilised egg you started as divided into roughly 37 trillion cells, and — barring the odd mutation — every one of them carries an identical copy of your DNA: the same ~20,000 protein-coding genes packed into ~2 metres of double helix, folded into 46 chromosomes. Yet a rod cell in your retina, a beating heart-muscle cell and a white blood cell look and behave nothing alike. The reason is not different genes; it is different genes switched on. A liver cell runs its liver genes and keeps the muscle and neuron genes locked shut. This selective switching is called gene expression, and it is what makes one genome build hundreds of tissues.

The promoter and its transcription factors — the main switch

Most switching happens at the very first step, transcription (copying a gene into RNA). Just upstream of each gene sits a stretch of DNA called the promoter — think of it as a labelled landing pad. Proteins called transcription factors read the DNA sequence and dock there. Some are activators that recruit the copying machinery; others are repressors that block it. A human cell has well over a thousand different transcription factors, and it is the particular combination present that decides which genes fire. Change the mix of active transcription factors — which is exactly what a developing embryo, or a cell responding to a signal, does — and you change which genes are on.

RNA polymerase reads the gene

Once activators have assembled on the promoter, they help load the workhorse enzyme: RNA polymerase II. It clamps onto the DNA at the transcription start site and slides along the gene, unzipping the helix and building a matching messenger RNA (mRNA) copy as it goes, at a real pace of roughly 20–80 nucleotides per second (about 1–2 thousand letters a minute). The finished mRNA peels off, is trimmed and processed, and leaves the nucleus through a nuclear pore to be read by ribosomes into protein. A busy gene doesn't send one polymerase — it loads a whole convoy, one after another, which is how a single gene can pump out many copies per minute. (For the next step, protein assembly, see the DNA → Protein animation.)

Activators, repressors, and how one egg builds every tissue

The clearest way a gene goes dark is a repressor: a protein that sits on or near the promoter and physically blocks polymerase from loading — the red clamp in the Repressor scenario. This is fast and reversible: remove the repressor and the gene is instantly available again, no rewriting of anything. Cells combine activators and repressors like tiny logic gates — a gene might fire only when activator A and activator B are present and repressor C is absent. Stacking these simple rules across 20,000 genes is enough to specify every cell type in the body.

This is exactly how one fertilised egg builds every tissue — a process called differentiation. As the embryo divides, cells switch on different master transcription factors that lock in an identity and turn on hundreds of downstream genes at once. A single factor can be decisive: force the muscle master gene MyoD into an ordinary skin fibroblast and it starts turning into muscle. The most striking proof that transcription factors are cell identity came in 2006, when just four factors — Oct4, Sox2, Klf4 and c-Myc (the “Yamanaka factors”) — were shown to reprogram an adult skin cell all the way back into a stem cell that can become any tissue. That discovery earned Shinya Yamanaka a share of the 2012 Nobel Prize and drove home the whole point of this page: it is not the DNA that makes a cell what it is, but which genes are switched on.

Hormones: switches thrown from outside the cell

Genes don't only respond to what's inside the cell. Steroid hormones — cortisol, oestrogen, testosterone — and vitamin D are fat-soluble, so they slip straight through the cell membrane and the nuclear envelope, as the Hormone signal scenario shows. Inside, each binds its own nuclear receptor, and the hormone–receptor pair becomes an active transcription factor that lands on specific response elements in DNA and switches whole programmes of genes on or off. Vitamin D, for instance, binds the vitamin D receptor (VDR), which docks on vitamin D response elements to turn on genes for calcium absorption and immune defence — a direct line from a nutrient to your genes (see the Vitamin D page). This is why a hormone in the blood can reprogram a cell within hours.

Epigenetics I — DNA methylation packs a gene away

Beneath the transcription-factor layer sits a slower, stickier level of control: epigenetics — chemical tags that change how DNA is used without changing the DNA letters. The best-known tag is DNA methylation: enzymes called DNA methyltransferases (DNMT1, DNMT3A, DNMT3B) add a methyl group to cytosine bases at so-called CpG sites, especially in promoter CpG islands. Heavy methylation of a promoter reliably silences that gene — the machinery can no longer read it, as in the Silenced scenario. A dramatic natural example is X‑chromosome inactivation: in every female cell one of the two X chromosomes is methylated and shut down wholesale, condensing into a compact Barr body. These marks are copied when a cell divides, so a liver cell's daughters stay liver cells.

Epigenetics II — histones and how tightly DNA is spooled

Two metres of DNA fit in a nucleus only because it is wound around protein spools called histones. Each spool — a nucleosome — is an octamer of histone proteins (two each of H2A, H2B, H3 and H4) with about 147 base pairs of DNA wrapped ~1.7 times around it. How tightly these spools pack decides whether a gene is exposed or hidden. Histone acetylation (added by enzymes called HATs) loosens the packing so genes can be read; histone deacetylation (by HDACs) tightens it into dense, silent heterochromatin — the dark shroud that closes over the gene when you hit Silenced. Methylation tags and histone marks reinforce each other, and crucially they can be set by the environment: diet, stress and toxins all leave marks. The agouti mouse is the classic demonstration — feeding pregnant mice extra methyl donors (folate, B12, choline, betaine) methylates a coat-colour gene and changes their pups' fur colour, with no change to the DNA sequence at all.

When switches break: cancer, and drugs that target the tags

Regulation failing is a good working definition of cancer: the wrong genes are on and the wrong genes are off. Tumours often show promoter hypermethylation that silences protective tumour-suppressor genes — press ⚠ Silence tumor suppressor to watch a healthy gene get methylated shut, the same event that switches off guardians like MLH1 or CDKN2A in real cancers (see The Cell Cycle & Cancer). Because these marks are chemical, not genetic, they can be erased — which is why a class of real drugs targets them. Demethylating agents such as azacitidine and decitabine strip methyl marks and are approved for myelodysplastic syndromes and some leukaemias; HDAC inhibitors such as vorinostat and romidepsin loosen histone packing and treat certain lymphomas. Press 💊 Demethylating drug in the Silenced scenario to see the principle: pull off the tags, and a gene that was locked shut wakes back up.

An honest myth-correction

Epigenetics is real, important, and heavily oversold. You will see claims that your thoughts, mood or a special diet let you “rewrite your genes,” or that trauma is passed down your family tree as a fixed genetic curse. Here is the sober version. First, epigenetic marks do not change the DNA letters — the sequence you inherited is unchanged; what changes is how it is packed and read. Second, most marks are reset during egg, sperm and early-embryo development, which is a big reason we don't simply inherit our parents' lifetime of experiences. Genuine transgenerational epigenetic inheritance in humans is real but limited and hard to prove; the best-studied hint is the Dutch Hunger Winter of 1944–45, where people conceived during famine showed altered methylation of the IGF2 gene decades later. And identical twins — who start with the same genome — drift apart epigenetically as they age, which a landmark 2005 study (Fraga and colleagues) traced to accumulating differences in methylation and histone marks. The truthful takeaway: diet, exercise, sleep and avoiding toxins genuinely influence how your genes behave — a real and empowering fact — but they are tuning a switchboard, not editing the wiring.

↑ Back to the animation

Connections