A cutting block having a base, and a top connected to the base via four walls is disclosed. Each wall has an outwardly facing surface to guide a cutting tool. Each wall also has an attachment hole where a tracker may be attached. The cutting block is floated on the bone using the navigation system to position it at correct locations for the bone resection. After correctly locating the cutting block for each required cut, cutting block is fixed to the bone using pins and the bone resected. Same cutting block is suitable for resection of bone for installation of any size prosthetic device. For certain resections, the rotation angle may be mechanically set and need not be navigated.