Buckingham Palace said in a statement, "His Royal Highness The Duke of Edinburgh was admitted to King Edward VII Hospital in London this afternoon, for planned surgery on his hip which will take place tomorrow".
The exact nature of Philip's hip problem was unclear but Buckingham Palace said an update on his health would be given when appropriate.
The 96-year-old has been suffering from hip pain in recent weeks and has missed a number of family events including the Easter church service.
Philip retired from public life last August, quipping at the time that he was no longer able to "stand up much". Those were the annual Royal Maundy Service at St. George's Chapel last Thursday, March 29 and a parade to mark Prince Andrew's appointment as Colonel of the Grenadier Guards on March 22.
Japan PM to visit USA in April for talks with Trump
Among the topics of the April 17-18 series of meetings: Trade and Trump's planned meeting with North Korean leader Kim Jong Un . And when Trump first had Abe to his Mar-a-Lago club last February, South African pro golfer Ernie Els joined a round of golf.
The duke retired from official duties past year but has been seen in recent months driving his vehicle and attending some events with his family.
His surgery comes ahead of a busy time for the royal family, with Kate Middleton, Duchess of Cambridge, due to give birth to her third child some time this month, and the wedding of his grandson, Prince Harry, with Meghan Markle on May 19. In June 2017, the Duke was admitted to hospital for an infection stemming from a pre-existing condition but was back in working order for celebrations at Sandringham over the Christmas holiday.
Recovery will depend on the individual patient but, in general, doctors get patients on their feet as quickly as possible and discharge them three to five days after the procedure.
Figures for the United Kingdom, excluding Scotland, show 851 people over 90 had a hip replacement in 2016.