Experiment and practice! There are lots of different “flavors” of comedy (subtle, gross-out, slapstick, pun…). Test out different comedic styles and see which ones fit best with your story and which ones you’re best at. Look more into your chosen comedy style and see what more you can learn about it.
Take in funny media. Watch comedians and comedy movies, read funny books—look at what makes you laugh and try to figure out why it does that. Comedy may be less easily dissectible than other genres, but if you notice a pattern, see where it takes you.
Gauging your audience will probably also be helpful: kids respond differently and to different things than teens or adults. Figuring out who you want to write for can help you figure out which way to take your comedy style.
Comedy is a hugely subjective art form, so getting a small army of beta readers can never be a bad thing. Capturing humor in writing takes skill and practice, even if you are a naturally funny person—just because you think it’s funny doesn’t mean it will come across as such in your writing. Get some outside perspective on it.
Check for more: