Hadrontherapy is a type of radiotherapy characterized by the use of ion beams for the treatment of oncological diseases (cancer). Due to the nature of the interaction of ions with matter, hadrontherapy has the advantage of delivering treatment doses in a more localized way with respect to how it happens with the use of electron or photon beams. To date, experimental studies with different ions are carried out, however in real treatments only ions of 1H and 12C are used. In this work a set of simulations of the transport and stopping of ions in matter was performed using a software called SRIM. In this simulation, it is considered independently, 1H ions with 9 energies between 70 and 141 MeV and 12C ions with 9 energies between 1.53 and 3.17 GeV. These were first interacted with a medium composed entirely of water and then in a medium that includes a human tissues combination. The obtained results allow to analyze the transferred energy curves produced by the ions in their path through the simulated media and therefore identify the characteristic Bragg peaks for this type of particles and estimate both at which they occur, as well as the values of the maximum energy transferred in said peaks for each case simulated. The study also allows to identify the variation, as much in the distribution of the transferred energy as in the depth of the maximum, caused by the inclusion of the combination of the tissues and also allows to recognize the differences that appear between the use of ions of 1H and ions of 12C. Additionally a relationship between the initial energy of the ion beam and the maximun depth of maximum transferred energy value.