Squats are a very useful exercise to make it easier to get up from a chair, off the toilet and out of bed. If this is difficult, try the sit-to-stand variation first or if too easy, do the supported squat variation instead. It can also be helpful if you have one-sided weakness, like after a stroke.
Step out about two footlengths from a wall, then put feet a bit wider than shoulder width apart at that distance. Use your hands and bottom and find the wall behind you. Slide down. The knees should stay behind the toes as you move down, and your bottom should stay in contact with the wall. Don’t go past a 90° angle at the knees and push evenly through the feet to get upright. If you need help getting back to a standing position, use the wall to help yourself back up. Have a stable surface nearby that you can pull up on if needed, like a countertop.
Wall squats are a good starting point if you don’t yet feel steady or safe doing supported or unsupported squats, but the sit-to-stand exercise is already too simple. It can also be helpful if you have one-sided weakness, like after a stroke.