One of the alleged plotters tipped off the authorities on Saturday to an alleged “plan to destabilize the institutions of the republic”, the prosecutor’s office said in a statement.
An investigation is under way and the soldiers have been questioned, it said.
Burkina Faso appears to be especially vulnerable. Rising violence by Islamist militants linked to al Qaeda and Islamic State killed hundreds of soldiers and civilians last year, prompting violent street protests in November calling for President Roch Kabore to step down.
The Burkinabe government at the time suspended mobile internet service for over a week, and the tense situation led the United Nations’ special envoy to West Africa to warn against any military takeover.