The calculated distance (air line) between Demak and Surabaya is approximately 147 miles respectively 236 kilometers.
By car or train, the actual journey to Surabaya is certainly longer, as only the direct route (as the crow flies) between Demak and Surabaya has been calculated here.