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