Purpose: This study aimed to investigate changes in gait variables depending on whether a task was performed using a smartphone while walking on a ramp. Methods: The participants of this study were 41 college students attending U University located in Gyeongju City, Gyeongsangbuk-do. In this study, gait variables were measured during ramp gait while using a smartphone to perform a task and during ramp gait without performing such tasks. In other words, four walking conditions were used: 1) walking up a ramp, 2) walking up a ramp while using a smartphone to perform a task, 3) walking down a ramp, and 4) walking down a ramp while using a smart phone to perform a task. Gait variables were measured using a gait analysis tool (Legsys; BioSensics, USA), and stride time, stride length, stride velocity, cadence, and double support were analyzed. The order of measurements was randomized to control for order effects due to repeated measurements. Results: The comparative analysis of gait variables according to the presence or absence of smartphone use during ramp gait showed that there were significant differences in stride time, stride length, and stride velocity during both ramp ascent and ramp descent (p < 0.05). In both ramp ascent and ramp descent, stride time increased when walking using a smartphone, compared to when walking without using a smartphone (p < 0.05). However, in both ramp ascent and ramp descent, stride length and stride velocity were decreased when walking using a smartphone compared to when walking without using a smartphone (p < 0.05). Conclusion: The study results showed that the use of a smartphone during walking can affect safety. Therefore, it is necessary to improve the awareness of risks associated with walking while using a smartphone, and further research needs to be conducted in various environments and with different ramps.