Apart from the 1046 k Arabian Sea coastline , Pakistan 's land borders total 6774 k â '' 2430 k with Afghanistan to the northwest , 523 k with China to the northeast , 2912 k with India to the south and east , and 909 k with Iran to the southwest . Apart from the 1046 k coastline along the Arabian Sea , Pakistan 's land borders a total of 6774 kâ '' 2430 k with Afghanistan , 523 k with China , 2912 k with India and 909 k with Iran .