This study investigates the design an electric motor propelling hubless wheel mounted on an electric bicycle (e-bike) by numerical analysis. The motor is part of an in-wheel system that uses a permanent magnet synchronous motor (PMSM) to drive the hubless wheel. This paper presents an optimized PMSM design and compares various torque-related parameters, such as cogging torque, cogging torque total harmonic distortion (THD), and ripple torque. The comparison is based on a motor design that examines the effect of different factors, including the number of windings, slot openings, permanent magnet span, and magnet thickness. The motor was modeled and analyzed with variations in the number of windings (21, 23, 25), slot openings (2.4 mm, 3.0 mm, 3.6 mm), permanent magnet span (23 mm, 25 mm, 27 mm), and permanent magnet thickness (3.5 mm, 4.0 mm, 4.5 mm). Our findings suggest that increasing the permanent magnet’s thickness leads to a higher magnetic flux density. Additionally, when the permanent magnet span exceeds 25 mm, there is a sharp increase in cogging torque THD. Based on these results, a slot opening of 3.0 mm and the use of 25 windings are considered suitable for a hubless e-bike.