The calculated distance (air line) between Costa de Caparica and Portimão is approximately 111 miles respectively 178 kilometers.
By car or train, the actual journey to Portimão is certainly longer, as only the direct route (as the crow flies) between Costa de Caparica and Portimão has been calculated here.
Air line (approximately)
178 kilometers
96 nautical miles