Mars is the fourth planet from the Sun and the second-smallest planet in the Solar System, being larger than only Mercury. https://en.wikipedia.org/wiki/Mars
It takes the Earth one year to orbit the Sun and it takes Mars about 1.9 years (say 2 years for easy calculation ) to orbit the Sun. The elliptical orbit which carries you from Earth to Mars is longer than Earth’s orbit, but shorter than Mars’ orbit. Accordingly, we can estimate the time it would take to complete this orbit by averaging the lengths of Earth’s orbit and Mars’ orbit. Therefore, it would take about one and a half years to complete the elliptical orbit above. Since it would be nice to spend some time at Mars, we are only interested in the one way trip which is half of the orbit, and would take half the time of the full orbit, or about nine months.
So it takes nine months to get to Mars. It is possible to get to Mars in less time, but this would require you to burn your rocket engines longer, using more fuel. With current rocket technology, this isn’t really feasible. https://image.gsfc.nasa.gov/poetry/venus/q2811.html
If it’s not a one way only trip to Mars then you have to wait for Earth and Mars to be in the proper position before you head to Mars, you also have to make sure that they are in the proper position before you head home. That means you will have to spend 3-4 months at Mars before you can begin your return trip. All in all, your trip to Mars would take about 21 months: 9 months to get there, 3 months there, and 9 months to get back. With our current rocket technology, there is no way around this. The long duration of trip has several implications.