In this paper, double diffusive natural convection in binary mixture under the effect of external magnetic field for the steady and the oscillatory state is numerically investigated. For this end, a square cavity filled with a binary mixture has been considered; the cavity is exposed to opposing solute and thermal gradients. An external uniform magnetic field is applied separately in two directions (i.e. horizontal and vertical). The following flow parameters were considered: Prandtl number Pr = 0.71, Schmidt number Sc = 3.5 and buoyancy ratio N = 0.75, 1.0, and 1.25. The finite volume method with SIMPLER Algorithm was used to solve numerically the mathematical model. The model was validated and showed good agreement with experimental results of the literature. The obtained results showed a strong dependence of the structure of thermal and solutal effect to the buoyancy ratio. The oscillatory double diffusive flow occurs for a periodic time where the phenomenon change around in each period time. A critical thermal Rayleigh number RaTCr and corresponding dominated frequency for the onset of oscillatory double diffusive convection were determined for each N and for different values of Hartman number (0, 25, 50, and 100).