A method, system, computer-readable medium, use, and pulse sequence for magnetic resonance imaging or nuclear magnetic resonance is provided for determining the rate of molecular exchange between components with different diffusion characteristics. The present invention encodes the magnetic resonance signal for exchange utilizing judiciously designed protocols for varying the parameters of a pulse sequence comprising a pair of diffusion weighting blocks separated by a mixing time.