Ahmed earned his bachelor's and master's in geography from the University of Dhaka in 1958 and 1959 respectively. He earned his LL.B degree from the same university in 1963. He earned his LL.M degree from King's College London in 1967. He received his Bar-at-law from Lincoln's Inn in 1967.