Switching a divided voltage with transistor or MOSFET
Below are two methods. The simulated voltage for the BJT circuit is 2.497V, for the MOSFET circuit 2.500V. 

With 3 base/gate resistors increased from 10K to 100K (R7 to 10K), the values are 2.495 and 2.500V. 







simulate this circuit &ndash; Schematic created using CircuitLab