Perception of sensory stimulation is influenced by numerous psychological variables. One example is placebo analgesia, where expecting low pain causes a painful stimulus to feel less painful. Yet, because pain evolved to signal threats to survival, it should be maladaptive for highly-erroneous expectations to yield unrealistic pain experiences. Therefore, we hypothesised that a cue followed by a highly discrepant stimulus intensity, which generates a large prediction error, will have a weaker influence on the perception of that stimulus. To test this hypothesis we collected two independent pain-cueing datasets. The second dataset and the analysis plan were preregistered ( https://osf.io/5r6z7/ ). Regression modelling revealed that reported pain intensities were best explained by a quartic polynomial model of the prediction error. The results indicated that the influence of cues on perceived pain decreased when stimulus intensity was very different from expectations, suggesting that prediction error size has an immediate functional role in pain perception.