A model to value Federal Agricultural Mortgage Corporation (Farmer Mac) agricultural mortgage-backed securities (AMBS) is developed and numerically solved. The results suggest prepayment penalties currently being used by Farmer Mac reduce yields on AMBS considerably. Even with prepayment penalties, it can be advantageous for profit maximizing mortgagors to optimally prepay or even default on agricultural mortgages. The model is used to quantify prepayment and default risk by valuing the embedded options in the mortgages. Monte Carlo simulation is also used to determine the probability to optimal prepayment given the term structure assumption used to develop the model.