The trip to the hospital had been kept under wraps because it was expected to be a short stay, and also to protect the 95-year-old monarch's privacy.
The Queen stayed at the private King Edward VII's Hospital in central London because it was too late to make the 42-kilometre trip back to Windsor.
The head of state, who has been on the throne since 1952 and is Britain's longest-serving monarch, was said to be back at her desk on Thursday afternoon, undertaking light duties.