The defending Copa America champions responded to the shock of falling behind to a shock Miguel Camargo after only five minutes with two goals by Vargas before Arsenal star Sanchez grabbed a third in the Group D game.
Sanchez added his second in the 89th minute to complete the scoring.
The Chileans will almost certainly meet Group C winners Mexico in the quarter-finals on Saturday, barring a miraculous result in Tuesday's other match between Argentina and Bolivia.
Chile meanwhile will advance to the quarter-finals still searching for their best form after twice conceding against modest opponents who were thumped 5-0 by Argentina in their previous outing.
The Chileans were given a scare early on when Camargo gave the Panamanians an early lead. Chile defender Gonzalo Jara was the culprit, giving away possession with a lazy pass out of defense that allowed Panama to pounce.
The ball arrived at Camargo's feet and the midfielder let fly with a venomous low shot which Barcelona goalkeeper Claudio Bravo failed to grasp to leave Panama 1-0 up.
Gary Medel should have headed Chile into the lead on 38 minutes, stealing in unmarked at the back post but heading over from a Sanchez corner.
Yet two minutes before the break, Chile took the lead, Vargas heading in a cross from the left for 2-1.
Five minutes into the second half, it was 3-1. Vargas picked out Sanchez with a lofted pass from one side of the penalty area to the other and the Arsenal star showed great technique to lash a first-time volley into the roof of the net.
You’ve reached your limit of {{free_limit}} free articles this month.
Subscribe now for unlimited access.
Already subscribed? Log in
Subscribe to read the full story →
Smart Quarterly
₹900
3 Months
₹300/Month
Smart Essential
₹2,700
1 Year
₹225/Month
Super Saver
₹3,900
2 Years
₹162/Month
Renews automatically, cancel anytime
Here’s what’s included in our digital subscription plans
Exclusive premium stories online
Over 30 premium stories daily, handpicked by our editors


Complimentary Access to The New York Times
News, Games, Cooking, Audio, Wirecutter & The Athletic
Business Standard Epaper
Digital replica of our daily newspaper — with options to read, save, and share


Curated Newsletters
Insights on markets, finance, politics, tech, and more delivered to your inbox
Market Analysis & Investment Insights
In-depth market analysis & insights with access to The Smart Investor


Archives
Repository of articles and publications dating back to 1997
Ad-free Reading
Uninterrupted reading experience with no advertisements


Seamless Access Across All Devices
Access Business Standard across devices — mobile, tablet, or PC, via web or app
