Template:Cao Wei rulers family tree

Cao Wei

- - - - - = The dashed line denotes an adoption

Cao Cao 曹操 155–220
Wudi 武帝
Cao Pi 曹丕 187–226
Wendi 文帝
220–226
Cao Zhang 曹彰 189–223
Prince Wei of
Rencheng 任城威王
Cao Yu 曹宇 d.278
Prince of Yan 燕王
Cao Rui 曹叡 205–239
Mingdi 明帝
226–239
Cao Lin 曹霖 d. 249
Prince Ding of
Donghai 東海定王
Cao Kai 曹楷
Prince of Jinan 济南王
Cao Huan 曹奐 246–303
Yuandi 元帝
260–265
Cao Mao 曹髦 241–260
Duke of Gaogui
District 高貴鄉公

254–260
Cao Fang 曹芳 232–274
Shaodi 少帝
239–254