On the final day of competition, Andrew took fourth place with a time of 21.60 in the 50 meter freestyle final. In the final of the 4x100 meter medley relay, Andrew swam the breaststroke leg of the relay and won the gold medal and set the world record and an Olympic record with his relay teammates Ryan Murphy, Caeleb Dressel, and Zach Apple in a time of 3:26.78. Andrew swam a 58.49 for the breaststroke leg of the relay.