The calculated distance (air line) between Ocean City and Washington is approximately 112 miles respectively 181 kilometers.
By car or train, the actual journey to Washington is certainly longer, as only the direct route (as the crow flies) between Ocean City and Washington has been calculated here.
Air line (approximately)
181 kilometers
97 nautical miles