Kerry will use the trip to thank the African Union peacemaking force AMISOM for fighting al-Shabab.
With the backing of US unmanned drone strikes, AMISOM and Somali troops have driven al-Shabab out of most of their strongholds.
In February, the US named Katherine Dhanani as ambassador to Somalia.
She is the first US ambassador to Somalia since the early 1990s, when the US pulled out of the country as fighting between rival commanders plunged the nation into chaos.
The US pulled its forces out of Somalia after the 1993 Black Hawk Down incident when a US helicopter was shot down over Mogadishu, killing 18 soldiers.
At that time, it was the deadliest one-day incident since the Vietnam War.
Other Western nations, including Britain, have already opened embassies inside the airport perimeter, which is surrounded by heavy security.
Based in Nairobi
For now, Dhanani will travel to Somalia regularly from a base in Nairobi, an official said.
In a bid to shore up the government and expand its control, Somalia is due to hold a referendum on a new constitution and an election for its president in 2016.
Somalia’s president was previously picked by legislators who were themselves nominated, not voted for, by their communities.
The state department official said on Tuesday that Somalia was expected to hold “some form of election” in 2016.
The official said the aim was to have a vote “different from what they’ve done before”.
“It has to be something that shows that they are moving forward in terms of a representative government.” Reuters