The optimal radiation dose is determined through careful planning and simulation. This involves imaging techniques like CT or MRI scans to map the tumor and surrounding tissues. The radiation oncologist then calculates the dose that will effectively target the cancer cells while sparing healthy tissue as much as possible.