Cocaine addiction can occur rapidly, often after just a few uses. Cocaine works by increasing the levels of dopamine in the brain, which produces a pleasurable feeling. Over time, the brain becomes accustomed to the increased dopamine levels and may require higher doses of the drug to achieve the same effect, leading to physical and psychological dependence. The speed at which cocaine addiction develops varies from person to person and can depend on factors such as frequency and amount of use, genetic predisposition, and underlying mental health conditions.