The three-day trip beginning June 24 would be their fifth state visit to the country.
The royal couple have been invited by Germany's president Joachim Gauck, according to the announcement.
The 88-year-old monarch and her 93-year-old husband, the Duke of Edinburgh, have previously paid state visits to Germany in 1965, 1978, 1992 and 2004.
The Queen opened the new British Embassy on an official visit to Berlin in July 2000.
The announcement comes two days before German Chancellor Angela Merkel arrives here for talks with Prime Minister David Cameron.