The onset of the instability of an incompressible, viscous and electrically conducting fluid heated from below and confined within a vertical, rectangular channel is investigated when a uniform magnetic field is applied normally to one side of the channel. The condition for the stability revealed by the critical Rayleigh number is found to be dependent upon both the Hartman number which is a measure of the magnetic effect and the aspect ratio of the channel.