QuantiNemo 2 is a stochastic simulation program for quantitative population genetics. It was developed to investigate the effects of selection, mutation, recombination and drift on quantitative traits and neutral markers in structured populations connected by migration and located in heterogeneous habitats. A specific feature is that it allows to switch between an individual-based full-featured mode and a population-based faster mode. Several demographic, genetic and selective parameters can be fine-tuned in QuantiNemo 2: population, selection, trait(s) architecture, genetic map for QTL and/or markers, environment, demography and mating system are the main features.QuantiNemo 2 is a C++ program with a source code available under the GNU General Public License version 3. Executables are provided for Windows, MacOS and Linux platforms, together with a comprehensive manual and tutorials illustrating its flexibility. The executable, manual and tutorial can be found on the website www2.unil.ch/popgen/softwares/quantinemo/, while the source code and user support are given through GitHub: github.com/jgx65/quantinemo.Supplementary data are available at Bioinformatics online.