Articles & Guides › Articles › Nervous System & Special Senses
Meningitis, encephalitis and other CNS infections
Which bacteria cause meningitis at each age, how to treat it empirically and how CSF patterns separate bacterial, viral, tuberculous and fungal causes, how herpes simplex encephalitis presents and how acyclovir works, and how brain abscesses and the opportunistic infections of advanced HIV are recognized.
Nervous System & Special Senses · 6 min read · Reviewed 2026-11-10
Infection of the nervous system is named by where it settles. Meningitis inflames the coverings of the brain and causes headache, fever and a stiff neck; encephalitis inflames the brain itself and adds confusion, seizures and focal signs; an abscess is a walled-off collection of pus that behaves like a growing mass. The likely organism depends on the patient's age and immune status, and the CSF usually separates bacteria from viruses, tuberculosis and fungi. Because bacterial meningitis and herpes encephalitis can kill or disable within hours, treatment starts before the answer is certain.
Key points
- Group B streptococcus, E. coli and Listeria cause neonatal meningitis; S. pneumoniae and N. meningitidis cause most meningitis after infancy.
- Give vancomycin plus ceftriaxone, adding ampicillin for Listeria in infants, adults over 50, pregnancy and immunosuppression; dexamethasone reduces hearing loss and death in pneumococcal meningitis.
- Bacterial CSF has neutrophils, low glucose and high protein; viral CSF has lymphocytes and normal glucose; tuberculous and fungal CSF have lymphocytes with low glucose.
- Herpes simplex encephalitis targets the temporal lobes; start intravenous acyclovir as soon as it is suspected.
- In advanced HIV, multiple ring-enhancing lesions suggest toxoplasmosis, a single lesion suggests lymphoma, and very high opening pressure suggests cryptococcal meningitis.
Bacterial meningitis and CSF patterns
Presentation
Bacterial meningitis causes fever, headache, neck stiffness and confusion, though only a minority have all three of fever, neck stiffness and confusion, along with light sensitivity, vomiting and seizures[1]. Infants show fever or low temperature, poor feeding, irritability, lethargy and a bulging fontanelle instead of neck stiffness.
Organisms and empiric treatment
| Group | Common organisms | Empiric treatment |
|---|---|---|
| Newborns (under 1 month) | Group B streptococcus, *E. coli, Listeria* | Ampicillin plus cefotaxime or gentamicin |
| 1 month to 50 years | *S. pneumoniae, N. meningitidis; H. influenzae* type b if unvaccinated | Vancomycin plus ceftriaxone |
| Over 50, pregnant or immunosuppressed | The same plus *Listeria* | Vancomycin, ceftriaxone plus ampicillin |
| After neurosurgery or a shunt | Staphylococci, gram-negative rods | Vancomycin plus cefepime or meropenem |
Ampicillin is added for Listeria because it is naturally resistant to cephalosporins. Dexamethasone, given just before or with the first antibiotic dose, reduces death and hearing loss in pneumococcal meningitis[2].
| Organism | Clues |
|---|---|
| S. pneumoniae | Gram-positive diplococci; the most common adult cause; after sinusitis or ear infection, CSF leaks or loss of the spleen |
| N. meningitidis | Gram-negative diplococci; young people in dormitories; a purpuric rash and shock; terminal complement deficiency raises risk; close contacts get prophylaxis with rifampin, ciprofloxacin or ceftriaxone |
| Group B streptococcus | Gram-positive cocci in chains; the most common newborn cause; prevented by screening late in pregnancy and penicillin in labor |
| Listeria | Gram-positive rod with tumbling motility; soft cheeses and deli meats |
Reading the CSF
| Cause | Opening pressure | Cells | Glucose | Protein |
|---|---|---|---|---|
| Normal | 70–180 mm H2O | Up to 5 lymphocytes | About two-thirds of blood | Under about 40 mg/dL |
| Bacterial | High | Neutrophils | Low | High |
| Viral | Normal or slightly high | Lymphocytes | Normal | Normal or mildly high |
| Tuberculous | High | Lymphocytes | Low | Very high |
| Cryptococcal | Very high | Lymphocytes, sometimes few | Low | High |
| Guillain-Barré syndrome | Normal | Normal | Normal | High |
Bacteria and white cells consume glucose, which explains why it falls in bacterial, tuberculous and fungal infection.
Order of steps
Draw blood cultures and start antibiotics and dexamethasone immediately. A CT is done before lumbar puncture only if there are focal signs, papilledema, reduced consciousness, a new seizure or immunosuppression, and antibiotics are never delayed for the scan. Long-term complications include hearing loss (the most common in children), seizures, hydrocephalus and cranial nerve palsies.
Viral meningitis and encephalitis
Viral meningitis
Viral (aseptic) meningitis causes headache, fever and a stiff neck with normal mental status. Enteroviruses are the most common cause, peaking in summer and fall; others include herpes simplex virus type 2 (sometimes recurrent), HIV at the time of infection and West Nile virus. It is usually self-limited.
Herpes simplex encephalitis
Encephalitis adds confusion, behavior change, seizures and focal signs. Herpes simplex virus type 1 is the most common cause of severe sporadic encephalitis[3]. It has a striking preference for the medial temporal and inferior frontal lobes, where it causes hemorrhagic necrosis. Patients develop fever, confusion, personality change, seizures (sometimes with smell hallucinations), aphasia and memory loss. MRI shows temporal lobe swelling, the CSF shows lymphocytes with red cells and a normal glucose, and CSF PCR confirms the virus.
Intravenous acyclovir is started as soon as the diagnosis is suspected. Acyclovir is a guanosine analog first phosphorylated by the viral thymidine kinase, so it is activated only in infected cells; host enzymes then make the triphosphate, which blocks viral DNA polymerase and stops the DNA chain. Patients are kept well hydrated because it can crystallize in the kidneys. Resistant virus with altered thymidine kinase is treated with foscarnet, which needs no activation. Survivors may have memory loss, and an autoimmune encephalitis against NMDA receptors can follow.
Other viral and autoimmune encephalitis
| Cause | Features |
|---|---|
| West Nile virus | Mosquito-borne; encephalitis in older adults, sometimes with polio-like paralysis |
| Rabies | After an animal bite, especially bats; travels to the brain along nerves; agitation, fear of water, excess saliva, then paralysis; nearly always fatal once symptoms appear, so exposure is treated with wound washing, immune globulin and vaccine |
| Measles | Subacute sclerosing panencephalitis years later in children and teenagers |
| Anti-NMDA receptor encephalitis | Young women, sometimes with an ovarian teratoma; psychiatric symptoms, seizures, abnormal face and mouth movements, autonomic instability; immunotherapy and tumor removal[4] |
Brain abscess and opportunistic CNS infections
Brain abscess
An abscess forms by direct spread from sinusitis, ear or dental infection (usually a single abscess near the source) or by spread through the blood from endocarditis, lung infection or right-to-left heart shunts such as cyanotic congenital heart disease, which let bacteria bypass the lungs[5]. Common organisms are viridans streptococci, anaerobes and Staphylococcus aureus. Headache is the most common symptom, fever is often absent, and focal deficits or seizures follow. Imaging shows a ring-enhancing lesion with surrounding swelling. Treatment is drainage and a long antibiotic course. Lumbar puncture is avoided because of the risk of herniation.
Advanced HIV
| Condition | CD4 count | Imaging | Diagnosis and treatment |
|---|---|---|---|
| Toxoplasmosis | Under 100 | Multiple ring-enhancing lesions at the gray-white junction and basal ganglia | Positive Toxoplasma IgG; treat empirically with pyrimethamine and sulfadiazine and rescan; prevent with trimethoprim-sulfamethoxazole |
| Primary CNS lymphoma | Under 50 | Usually a single enhancing lesion near the ventricles | Epstein-Barr virus DNA in CSF; biopsy if toxoplasmosis treatment fails |
| Cryptococcal meningitis | Under 100 | Often normal | Very high opening pressure; India ink or capsular antigen; amphotericin B with flucytosine, then fluconazole; repeated taps to lower pressure[6] |
| PML | Under 200 | Nonenhancing white matter lesions | JC virus DNA in CSF; antiretroviral therapy |
| Cytomegalovirus | Under 50 | Enhancement around the ventricles | Ganciclovir or foscarnet |
Other infections to know
- Tuberculous meningitis: inflammation at the base of the brain, cranial nerve palsies, hydrocephalus and strokes; treated with antituberculous drugs plus dexamethasone.
- Neurosyphilis: tabes dorsalis, dementia and Argyll Robertson pupils; treated with intravenous penicillin.
- Neurocysticercosis: pork tapeworm larvae from fecal-oral spread; the most common cause of acquired epilepsy worldwide; cysts that later calcify.
- Lyme disease: facial palsy (sometimes on both sides), lymphocytic meningitis and nerve root pain.
- *Naegleria fowleri*: rapidly fatal infection after swimming in warm fresh water, entering through the cribriform plate.
Common confusions
- Viral versus bacterial meningitis: normal mental status and normal glucose favor a virus; confusion, neutrophils and low glucose favor bacteria.
- Tuberculous versus viral CSF: both have lymphocytes, but tuberculosis lowers glucose and raises protein much more.
- Toxoplasmosis versus lymphoma in HIV: multiple lesions favor toxoplasmosis, a single lesion favors lymphoma.
- When to scan first: focal signs, papilledema, reduced consciousness, a new seizure or immunosuppression, but antibiotics come before the scan.
References
- van de Beek D, Brouwer MC, Koedel U, Wall EC. Community-acquired bacterial meningitis. Lancet. 2021;398(10306):1171-1183. doi:10.1016/S0140-6736(21)00883-7 Link ↩
- Tunkel AR, Hartman BJ, Kaplan SL, et al. Practice guidelines for the management of bacterial meningitis. Clin Infect Dis. 2004;39(9):1267-1284. doi:10.1086/425368 Link ↩
- Tunkel AR, Glaser CA, Bloch KC, et al. The management of encephalitis: clinical practice guidelines by the Infectious Diseases Society of America. Clin Infect Dis. 2008;47(3):303-327. doi:10.1086/589747 Link ↩
- Dalmau J, Armangué T, Planagumà J, et al. An update on anti-NMDA receptor encephalitis for neurologists and psychiatrists: mechanisms and models. Lancet Neurol. 2019;18(11):1045-1057. doi:10.1016/S1474-4422(19)30244-3 Link ↩
- Brouwer MC, Tunkel AR, McKhann GM 2nd, van de Beek D. Brain abscess. N Engl J Med. 2014;371(5):447-456. doi:10.1056/NEJMra1301635 Link ↩
- Perfect JR, Dismukes WE, Dromer F, et al. Clinical practice guidelines for the management of cryptococcal disease: 2010 update by the Infectious Diseases Society of America. Clin Infect Dis. 2010;50(3):291-322. doi:10.1086/649858 Link ↩