Objective. Recently, electrocorticography-based brain–computer interfaces have been successfully used to translate cortical activity into control signals for external devices. However, the utility of such devices would be greatly enhanced by somatosensory feedback. Direct stimulation of somatosensory cortex evokes sensory perceptions, and is thus a promising option for closing the loop. Before this can be implemented in humans it is necessary to evaluate how changes in stimulus parameters are perceived and the extent to which they can be discriminated. Approach. Electrical stimulation was delivered to the somatosensory cortex of human subjects implanted with electrocorticography grids. Subjects were asked to discriminate between stimuli of different frequency and amplitude as well as to report the qualitative sensations elicited by the stimulation. Main results. In this study we show that in humans implanted with electrocorticography grids, variations in the amplitude or frequency of cortical electrical stimulation produce graded variations in percepts. Subjects were able to reliably distinguish between different stimuli. Significance. These results indicate that direct cortical stimulation is a feasible option for sensory feedback with brain–computer interface devices.