Metformin is commonly prescribed to people with diabetes. Metformin has been shown in previous studies to be able to prevent the growth of cancer cells. This study aims to investigate the effects of metformin and gold nanoparticles in MCF7 breast cancer and A549 lung cell lines. The effects of metformin and gold nanoparticles on MCF7 breast cancer and A549 lung cells were determined on cells grown in 24 h cell culture. MCF-7 and A549 cells were incubated for 24 h with the treatment of escalating molar concentrations of ifosfamide. The MTT assay was used to determine the cytotoxicity of metformin toward MCF7 and A549 cell lines. The expression of Bax, BCL2, PI3K, Akt3, mTOR, Hsp60, Hsp70, and TNF-α was measured by RT-PCR. Metformin and gold nanoparticles inhibited the proliferation of MCF-7 and A549 cells in a dose and time-dependent manner with an IC50 value of 5 µM and 10 µg/mL. RT-PCR assays showed ifosfamide + metformin + gold nanoparticles significantly reduced the expression of BCL2, PI3K, Akt3, mTOR, Hsp60 and Hsp70 and increased the expression of TNF-α and Bax. The findings obtained in this study suggest that further studies should be conducted, and metformin and gold nanoparticles can be used in breast cancer and lung cancer treatments.