Measure the bed frame, not the mattress. Frames are often 10–20 cm larger.
Leave room for wardrobe doors and drawers to open fully.
A bed against the wall saves space, but can only be made and reached from one side.
These are worked examples with generic furniture at the sizes shown, not designs for a particular home. Measure your room, and check your own furniture, door openings and pipework.
Plan your own
Have different measurements? Use the free bedroom planner to draw your room to scale, or open any layout above and change its walls. More layout ideas: master bedroom layouts.