Riding an exercise bike primarily works the quadriceps, hamstrings, and gluteals, according to a source from [Tom’s Guide](https://www.tomsguide.com/news/heres-what-30-minutes-on-an-exercise-bike-can-do-to-your-body). The inner thigh muscles, adductor muscles, arm muscles (biceps and triceps), rectus abdominus, and erector spinae are also used to a lesser extent, according to other sources such as [FitnessDY](https://fitnessdy.com/exercise-bike-muscles-worked/), [Livestrong](https://www.livestrong.com/article/217361-muscle-stationary-bike-work/), and [Garage Gym Pro](https://garagegympro.com/exercise-bike-muscles-worked/).
There are different exercises that are bound to be one for each muscle you would need to work. Some exercises strengthen the upper body muscles, some for the arms, some for the legs, and some for the lower body muscles.
If you are to go on an exercise on a stationary bike or an exercise bike on a higher resistance, you would be building strength on your lower body and legs.
Not only that, but pedaling can also make the muscles on your core, back, and glute aside from strengthening your calves, hamstrings, and quadriceps.