LITERATURE SEARCHING AND PUBMED

How to Use Boolean Operators in Research

Guide · 1 min read · Last updated 2026-10-31

Boolean operators combine search terms logically: OR broadens a search by joining synonyms, AND narrows it by requiring that all concepts appear, and NOT excludes records containing a term. Using them with brackets makes your logic explicit and reproducible.

What each does

OperatorEffectUse forExample
ORRecords with either termSynonyms of the same conceptstroke OR "cerebrovascular accident"
ANDRecords with bothCombining different conceptsstroke AND rehabilitation
NOTExcludes records with the termRare, careful exclusions(cancer) NOT (breast cancer)

PubMed needs operators in capitals. PubMed processes operators from left to right unless brackets change the order, so use brackets.

Nesting with brackets

Compare stroke OR "cerebrovascular accident" AND rehabilitation (ambiguous) with (stroke OR "cerebrovascular accident") AND rehabilitation (clear). The brackets say: first combine the synonyms, then require the second concept.

Illustrative example

Invented for teaching. A search for children with asthma and vitamin D: (child* OR paediatric OR pediatric OR adolescent*) AND (asthma OR wheez*) AND ("vitamin D" OR cholecalciferol). Each bracket is one concept; OR sits within brackets and AND sits between them.

Why NOT is risky

NOT can remove relevant papers that mention the excluded term in passing. For example NOT animals may remove human studies that also report animal work. Prefer a filter or a manual screening step, and justify any use of NOT.

Common pitfalls

  • Forgetting brackets, so that the search does not mean what you intended.
  • Using AND between synonyms, which shrinks results to almost nothing.
  • Using different logic across databases without checking each interface.

Key takeaways

  • OR within a concept, AND between concepts.
  • Use brackets to control logic and avoid NOT unless necessary.
  • Check how each database interprets syntax.

References and further reading

  1. National Library of Medicine. PubMed User Guide. Link
  2. Higgins JPT, Thomas J, Chandler J, et al., editors. Cochrane Handbook for Systematic Reviews of Interventions. Cochrane. Link

Related reading

This page is general educational information about research methods. It is not medical, legal or regulatory advice; follow your institution's ethics board and your target journal's instructions.