Using ab initio calculations, we have studied the structural and elastic properties of M(2)Inc, with M = Sc, Ti, V, Zr, Nb, Hf and Ta. Geometrical optimization of the unit cell is in agreement with the available experimental data. We have observed a quadratic dependence of the lattice parameters versus the applied pressure. We derived the bulk and shear moduli, Young's moduli and Poisson's ratio for ideal polycrystalline M2InC aggregates. We estimated the Debye temperature of M2InC from the average sound velocity. This is the first quantitative theoretical prediction of the elastic properties of Sc2InC, Ti2InC, V2InC, Zr2InC, Hf2InC and Ta2InC compounds, and it still awaits experimental confirmation.