An inflationary gap (or positive output gap) measures the difference between the current level of real gross domestic product (GDP) and the potential output, given the current real output is higher than the potential output. It will be created when the AD curve shifts rightward or the SRAS curve shifts rightward.
When AD curve shifts to the right:
When SRAS curve shifts to the right: