structural:reformatting, information:classification
Differential diagnosis

Bipolar disorder is classified by the International Classification of Diseases as a mental and behavioural disorder. Mental disorders that can have symptoms similar to those seen in bipolar disorder include schizophrenia, major depressive disorder, attention deficit hyperactivity disorder (ADHD), and certain personality disorders, such as borderline personality disorder. A key difference between bipolar disorder and borderline personality disorder is the nature of the mood swings; in contrast to the sustained changes to mood over days to weeks or longer, those of the latter condition (more accurately called emotional dysregulation) are sudden and often short-lived, and secondary to social stressors.

Although there are no biological tests that are diagnostic of bipolar disorder, blood tests and/or imaging are carried out to investigate whether medical illnesses with clinical presentations similar to that of bipolar disorder are present before making a definitive diagnosis. Neurologic diseases such as multiple sclerosis, complex partial seizures, strokes, brain tumors, Wilson's disease, traumatic brain injury, Huntington's disease, and complex migraines can mimic features of bipolar disorder. An EEG may be used to exclude neurological disorders such as epilepsy, and a CT scan or MRI of the head may be used to exclude brain lesions. Additionally, disorders of the endocrine system such as hypothyroidism, hyperthyroidism, and Cushing's disease are in the differential as is the connective tissue disease systemic lupus erythematosus. Infectious causes of mania that may appear similar to bipolar mania include herpes encephalitis, HIV, influenza, or neurosyphilis. Certain vitamin deficiencies such as pellagra (niacin deficiency), vitamin B deficiency, folate deficiency, and Wernicke–Korsakoff syndrome (thiamine deficiency) can also lead to mania. Common medications that can cause manic symptoms include antidepressants, prednisone, Parkinson's disease medications, thyroid hormone, stimulants (including cocaine and methamphetamine), and certain antibiotics.