We provide a detailed description of a new stellar evolution code, BINSTAR, which has been developed to study interacting binaries. Based on the stellar evolution code STAREVOL, it is specifically designed to study low-and intermediate-mass binaries. We describe the state-of-the-art input physics, which includes treatments of tidal interactions, mass transfer and angular momentum exchange within the system. A generalised Henyey method is used to solve simultaneously the stellar structure equations of each component as well as the separation and eccentricity of the orbit. Test simulations for cases A and B mass transfer are presented and compared with available models. The results of the evolution of Algol systems are in remarkable agreement with the calculations of the Vrije Universiteit Brussel (VUB) group, thus validating our code. We also computed a large grid of models for various masses (2 ≤ M/M ≤ 20) and seven metallicities (Z = 0.0001, 0.001, 0.004, 0.008, 0.01, 0.02, 0.03) to provide a useful analytical parameterisation of the tidal torque constant E 2 , which allows the determination of the circularisation and synchronisation timescales for stars with a radiative envelope and convective core. The evolution of E 2 during the main sequence shows noticeable differences compared to available models. In particular, our new calculations indicate that the circularisation timescale is constant during core hydrogen burning. We also show that E 2 weakly depends on core overshooting but is substantially increased when the metallicity becomes lower.