Cell lysis is one of the main steps in the deoxyribonucleic acid (DNA) extraction process, which makes vital information about organisms accessible for analysis. In the chemical cell lysis process, cells and lysis buffer mix, and the cell membrane is eliminated, and then DNA and other intracellular components are released. Mixing is not an easy step in microfluidic systems, and it reduces the chemical cell lysis efficiency. Therefore, a novel method has been implemented to address this issue. In this work, a magnetophoretic separation method is utilized to eliminate the mixing process and guide target cells directly inside the lysis buffer flow; integrating cell separation and cell lysis into a single platform enhances lysis efficiency. This method selectively lyses only the target cells that are pre-labeled with the antibody from the mixture of cells. These phenomena are combined in one simple straight channel and decrease the area used by the system, which is a desired goal in microsystems. Both numerical and experimental methods are utilized to separate magnetized cancer cells as circulating tumor cells from blood cells and guide them to a region having an appropriate concentration of lysis buffer. To optimize the system, parameters including inlet velocity, number of magnets, and distance between magnets and channel were studied, whereby 8 mm and five magnets were considered for optimum values of distance and number of magnets, respectively. According to the results, the fluid velocity was the key parameter for the target cell lysis phenomenon due to its influence on both mass transfer and cell separation phenomena. It was observed that lower velocities resulted in more cell separation efficiency, and higher velocities had better outcome in mass transfer. Finally, between a wide range of velocities from 0.1 to 50 mm/s, the 10 mm/s velocity was selected as the optimum inlet velocity, which showed 100% separation efficiency and a concentration of 0.55 mM for the target outlet.