Scotland Yard said the officers suffered minor injuries in the course of arresting the man but no other people were injured, the force wrote on Twitter. The London Ambulance Service attended to treat the injured men but they were not taken to hospital.
The man was stopped outside the royal grounds in possession of a knife at around 8.35pm.
Images posted online showed a heavy police presence outside the palace, with emergency vehicles packing out the road and armed police were reported to be on the scene.
Twitter user Amir Jan Malik wrote: "Stuck outside Buckingham palace with many armed police officers. Heavy rifles on display traffic at a halt."