Buckingham Palace says the procedure for the Queen's 96-year-old husband had been planned.
The Duke of Edinburgh, 96, was admitted to the private King Edward VII Hospital in London yesterday.
Very last June, Prince Philip put in two nights in hospital as a "precautionary measure" to its treating an undisclosed infection.
Buckingham Palace said the surgery went well and that he is "progressing satisfactorily at this early stage" while staying in "good spirits", local news outlets reported.
He is said to be "comfortable and in good spirits". It is understood that the operation will require a general anaesthetic.
The duke retired from official duties a year ago.
Arsenal's Calum Chambers targets strong Premier League finish
Stoke were more free-flowing in attack but Calum Chambers and Shkodran Mustafi were always present to deal with their threat. Aubameyang was denied by a good block by Butland moments before the award of the game-deciding penalty in the 75th minute.
Ananda Nanu, the board's president, said hip replacement patients need strong pain relief after their operations.
He has missed a series of engagements and events over the last month, including the recent Easter Sunday service at St. George's Chapel in Windsor.
"What is most important is someone's fitness, as in their heart and lung fitness, how much exercise they do and how well nourished they are".
Prince Philip had announced his retirement in May 2017, after decades of supporting the Queen as well as attending events for his own charities and organisations.
His final solo engagement was in August previous year, when he reviewed a parade of Royal Marines outside Buckingham Palace in his capacity as Captain General of the corps.
There's a busy few months coming up for the royal family, as the Duke and Cambridge prepare to welcome their third child, and Prince Harry and Meghan Markle marry next month. In 2016, he represented the royal family at 200 engagements.
- Spotify debuts with a boom, opening at $165.90
- London Passes New York City in Murders for First Time Ever
- Final Four hero lifts Notre Dame to title
- Apple hires Google's head of search, Strathclyde Uni graduate John Giannandrea
- China vows 'same strength' measures against USA tariffs
- Tiangong-1: Pioneer of China's space station
- Grindr Admits To Sharing Its Users' HIV Information
- Marvel's Spider-Man is swinging onto PlayStation this September
- Brandin Cooks was a fine fit, the Patriots couldn't re-sign him
- Robert Griffin III, Ravens, reach agreement on 1-year deal