A sloping ceiling can leave a useful amount of storage, but the useful part changes with height. A rectangle drawn on the floor does not tell you whether a hanger fits behind the door or whether the cabinet can be assembled in the room.
Measure height at more than one depth
Sketch a side view showing the floor, vertical wall and ceiling slope. Record heights at the proposed cabinet front and back, plus any changes in the slope. Repeat at both ends of the run; an old roofline may not be perfectly even. Include skirting, outlets, access hatches and anything that must remain reachable.
At the cabinet face
Front height
Measure where the doors or drawer fronts will sit, including their opening path.
At full depth
Back height
Check the usable height where shelves and hangers reach the slope.
Your clothes
Garment drop
Measure the longest actual garment from its hanger to its hem.
Into the room
Operating space
Mark the standing area and the full extension of drawers or baskets.
Give the tall space to the things that need it
Hang the longest garments where the measured clearance permits. Short hanging can work farther into the slope, but check shoulder and hanger width as well as the hem. Low shelves suit items you can retrieve without kneeling deep inside the cupboard. A low pullout can improve access if it has room to extend into the room.
Avoid making the deepest, lowest corner the home of everyday clothing. It can suit occasional items in a removable bin, provided the bin has a clear route out. The closet depth guide helps prevent a generous-looking shelf from becoming a hidden back row.
A cabinet that fits may still be impossible to assemble
IKEA's PAX assembly instructions show assembly clearances and require wall attachment. Check the current instructions for the exact frame before ordering. Do not assume a factory wardrobe can be shortened or have its upper corner cut away without affecting its joints, back or anchoring arrangement.
For custom cabinetry, decide how the pieces enter the room and how their connections can be reached under the slope. Allow access for fitting and future removal. If the design requires cutting roof framing or disturbing the insulated roof assembly, that is separate building work, not a cabinet adjustment.
Trace the moving parts at full size
Use tape and cardboard to test hinged doors and drawer travel. A door corner may strike the slope well before it provides useful access. Drawer fronts can also collide with a neighbouring door, bed or radiator. Open shelving is sometimes the more practical choice in the lowest section, even if the tall section has doors.
A final measured drawing should show both the storage volumes and the space needed to use them. Include the rod support arrangement rather than adding it after the shelves. For a similar triangular space with different structural constraints, compare under-stair storage.

