The dosage of thyroid hormone replacement is determined based on factors such as age, weight, severity of hypothyroidism, and presence of other medical conditions. Regular monitoring of TSH and thyroid hormone levels is necessary to adjust the dosage and ensure it remains within the optimal range.