The present invention provides a calculation method for an ultimate shear-carrying capacity of bundled long and short shear nails. The method comprises: firstly, launching a push-out test and finite element analysis of long and short shear nails to obtain an average single nail ultimate shear-carrying capacity, studying rules of effects of parameters of long and short shear nails, such as diameter, length, strength, elastic modulus and concrete strength, on shear-carrying capacity of a shear nail, performing non-linear regression analysis on ultimate shear-carrying capacity of the shear nail by a differential evolution method, and establishing a calculation formula of the ultimate shear-carrying capacity of the bundled long and short shear nails; and then, studying load, ultimate shear-carrying capacity and a relative slip value between a steel beam and a concrete slab of the long and short shear nails, and performing regression analysis to obtain a calculation formula of a load-slip curve of the bundled long and short shear nails. The method provided by the present invention solves the problem that the prior specification cannot consider staggered arrangement of different lengths and diameters of the shear nails for calculation of capacity, and provides technical supports for design long and short shear nails in steel-mixed composite structures.