In this paper, the structural, elastic, and electronic properties of RIn 3 and RSn 3 (R ÂŒ Sm, Eu, Gd) compounds have been investigated using the full potential linearized augmented plane wave plus local orbital method within the density functional theory. The structural properties are investigated using the LDA, GGA, and the band correlated LDAĂŸU and GGAĂŸU schemes. The lattice parameters are in good agreement with the available experimental results and the divalent state of Eu is also verified. The spin-orbit coupling is included in order to predict the correct electronic properties and splitting of 4f states of the rare earth elements is also incorporated. We calculated Bulk modulus, shear modulus, Young's modulus, anisotropic ratio, Kleinman parameters, Poisson's ratio, Lame's co-efficient, sound velocities for shear and longitudinal waves, and Debye temperature. We also predict the Cauchy pressure and B/G ratio in order to explore the ductile and brittle behaviors of these compounds. V C 2014 AIP Publishing LLC.