Most of the brain’s energy budget is consumed by neurons for synaptic transmission, but the mechanisms underlying energy usage is poorly understood. We use genetically encoded biosensors in situ to measure energy regulation at synapses to understand how neurons efficiently use energy for synaptic transmission.