Quantum fluctuations of a real massless scalar field are studied in the context of the generalized uncertainty principle (GUP). The dynamical finite vacuum energy is found in spatially flat Friedmann–Robertson–Walker spacetime which can be identified as dark energy to explain late time cosmic speed-up. The results showthat a tiny deviation from the standard uncertainty principle is necessary on cosmological ground. By using the observational data we have constraint the GUP parameter even more stronger than ever.