The condition is classified as bipolar I disorder if there has been at least one manic episode, with or without depressive episodes, and as bipolar II disorder if there has been at least one hypomanic episode (but no full manic episodes) and one major depressive episode. It is classified as Cyclothymia if there are hypomanic episodes with periods of depression that do not meet the criteria for major depressive episodes. If these symptoms are due to drugs or medical problems, they are not diagnosed as bipolar disorder. Other conditions that have overlapping symptoms with bipolar disorder include attention deficit hyperactivity disorder, personality disorders, schizophrenia, and substance use disorder as well as many other medical conditions. Medical testing is not required for a diagnosis, though blood tests or medical imaging can rule out other problems.Mood stabilizers—lithium and certain anticonvulsants such as valproate and carbamazepine as well as atypical antipsychotics such as aripiprazole—are the mainstay of long-term pharmacologic relapse prevention. Antipsychotics are additionally given during acute manic episodes as well as in cases where mood stabilizers are poorly tolerated or ineffective. In patients where compliance is of concern, long-acting injectable formulations are available. There is some evidence that psychotherapy improves the course of this disorder. The use of antidepressants in depressive episodes is controversial: they can be effective but have been implicated in triggering manic episodes. The treatment of depressive episodes, therefore, is often difficult. Electroconvulsive therapy (ECT) is effective in acute manic and depressive episodes, especially with psychosis or catatonia.
In 1850, Jean-Pierre Falret described "circular insanity" (la folie circulaire, French pronunciation: ​[la fɔli siʁ.ky.lɛʁ]); the lecture was summarized in 1851 in the "Gazette des hôpitaux" ("Hospital Gazette"). Three years later, in 1854, Jules-Gabriel-François Baillarger (1809–1890) described to the French Imperial Académie Nationale de Médecine a biphasic mental illness causing recurrent oscillations between mania and melancholia, which he termed folie à double forme (French pronunciation: ​[fɔli a dubl fɔʀm], "madness in double form"). Baillargers original paper, "De la folie à double forme," appeared in the medical journal Annales médico-psychologiques (Medico-psychological annals) in 1854.These concepts were developed by the German psychiatrist Emil Kraepelin (1856–1926), who, using Kahlbaums concept of cyclothymia, categorized and studied the natural course of untreated bipolar patients. He coined the term manic depressive psychosis, after noting that periods of acute illness, manic or depressive, were generally punctuated by relatively symptom-free intervals where the patient was able to function normally.The term "manic–depressive reaction" appeared in the first version of the DSM in 1952, influenced by the legacy of Adolf Meyer. Subtyping into "unipolar" depressive disorders and bipolar disorders has its origin in Karl Kleists concept – since 1911 – of unipolar and bipolar affective disorders, which was used by Karl Leonhard in 1957 to differentiate between unipolar and bipolar disorder in depression. These subtypes have been regarded as separate conditions since publication of the DSM-III.