The calculated distance (air line) between Palmela and Portimão is approximately 101 miles respectively 162 kilometers.
By car or train, the actual journey to Portimão is certainly longer, as only the direct route (as the crow flies) between Palmela and Portimão has been calculated here.