It really depends on what you want to see and do. I'd say at least 3-4 days to explore the historic Casco Viejo, the modern skyline, and nearby attractions like the Panama Canal. But if you have more time, there's plenty more to discover!