"I'm going to miss him a lot," Obama said of Carney. "I'm going to continue to rely on him as a friend and adviser."
Carney was previously director of communications for Vice President Joe Biden. He became White House press secretary in early 2011. Before going to work for Biden, Carney was Washington bureau chief of Time Magazine.
Carney will be replaced by Principal Deputy Press Secretary Josh Earnest. Obama described Earnest as "honest and full of integrity."
"I am sure at some point you will get frustrated with him," Obama quipped about Earnest.
Obama also urged the White House press corps to "be nice to Jay on his farewell tour." Carney will remain at the White House through the middle of next month. His departure comes as the Obama administration is facing a congressional investigation into the 2012 terrorist attack on the U.S. diplomatic mission in Benghazi, Libya, and a growing scandal over the care given to former soldiers by the Department of Veterans Affairs. Hours before the announcement of Carney's departure Obama revealed VA Secretary Eric Shinseki was also resigning from his post due to the issues at the department.