Nonsteroidal anti-inflammatory drugs, or NSAIDs, such as aspirin and ibuprofen are also a common cause of peptic ulcers. Ulcers caused by NSAIDs are usually found in people who:  Are aged 60 years or older. Are female. Have had an ulcer before. Have taken NSAIDs for a long time.