The knockout stages of the 2017 Copa do Brasil were played from April 26 to September 27, 2017.
In the knockout stages, the 16 teams played a single-elimination tournament, with the following rules:[1] A draw by CBF was held on April 20, 2017 to set the matches for the round of 16.
A draw by CBF was held on June 5, 2017 to set the matches for the quarter-finals.
A draw by CBF was held on July 31, 2017 to determine the home-and-away teams for both legs.
In the final, if tied on aggregate, the away goals rule and extra time would not be used and the penalty shoot-out would be used to determine the winner.
A draw by CBF was held on August 24, 2017 to determine the home-and-away team for each leg.