We present computational simulation of merging between two spiral galaxies, while each galaxy has dark matter halo particles and disk particles. After the merging between two galaxies, they are expected to become an elliptical galaxy. This study uses Navarro–Frenk–White (NFW) profile and Sersic profile for describes distribution of particles. NFW profile is an approximated profile of dark matter, which is produced in collisionless dark matter particles. On the other hand, Sersic profile is a mathematical function that describes how the surface brightness/density of a spherical system varies with distance from the center. Those two profiles will be created by N-body simulation, which is called “GAlaxies with Dark matter and Gas interacT" (GADGET2) program. GADGET2 was used to calculate the distribution of particles in galaxy mergers and the formation of galaxy, under the assumption of collisionless dynamics, which is based on Friedman–Lemaître model. Ultimately, the simulations will be used to study influence of supermassive black hole (SMBH) and active galactic nuclei (AGN) on galaxy mergers and their evolution.