The process in which nicotinamide adenine dinucleotide is transported from one side of a membrane to the other by means of some agent such as a transporter or pore; transport may be of either the oxidized form, NAD, or the reduced form, NADH.