But the amount of caffeine in your coffee or tea will depend directly on how long you brew the beverage. When coffee grounds are in contact with for a longer period of time, there will be more caffeine in your cup of Joe. When you steep a teabag for longer,your cup of tea will have a higher caffeine content.