The singer's representative confirmed Friday that Ke$ha had checked out of the facility. She had entered treatment in January.
Ke$ha posted on Twitter that's she's "happy to be back!" She writes: "Feeling healthy & working on tons of new music."
The 26-year-old vegetarian pop star thanked fans "for all the love & support u have given me." She said she entered rehab to "learn to love myself again, exactly as I am."
Ke$ha, whose real name is Kesha Rose Sebert, is the performer of such tunes as "Crazy Love," ''Die Young" and "Timber" with Pitbull. She starred in the MTV reality series "My Crazy Beautiful Life."