Police said late Wednesday night that the 22-year-old man was arrested earlier that morning by specialist royal police officers.
Palace officials declined to say whether the queen was told about the incident.
Police say the intruder wasn't carrying a weapon and that the incident is not seen as related to any extremist threat.
The suspect is in police custody. He hasn't been charged or identified.