A wheelchair includes a chair frame mechanism and a two-step mechanism. The chair frame mechanism includes a frame body and a two-legged rod. Each pedal mechanism includes a pivot unit pivoted on each of the foot bars, a positioning unit mounted on the foot bar, and a pedal unit mounted on the pivot unit, the pivot unit having a positioning unit for moving and embedding The movement slot of the limit position has a first slot segment and a second slot segment. When the positioning unit moves to the first slot section, the pedal unit is positioned on the front side of the seat frame body, and when the positioning unit moves to the second slot section, the pedal unit is positioned on the side of the seat frame body. Through the structural design of the positioning unit and the pivot unit, the pedal mechanism can swing relative to the foot rod, which makes the user safer and more convenient when leaving the wheelchair.一種輪椅,包含一椅架機構,及二踏板機構。椅架機構包括一椅架本體,及二腳桿。每一踏板機構包括一樞套在各別的腳桿的樞軸單元、一安裝在腳桿的定位單元,及一安裝在樞軸單元的踏板單元,樞軸單元具有一供定位單元移動以及嵌置限位的移動槽,移動槽具有一第一槽段與一第二槽段。當定位單元移動至第一槽段,踏板單元定位於椅架本體的前側,當定位單元移動至第二槽段,踏板單元定位於椅架本體的旁側。通過定位單元與樞軸單元的結構設計,踏板機構可相對於腳桿進行擺動,讓使用者在離開輪椅時更為安全方便。