The Great Resignation is coming.

A wave of employees looking for promotions, better pay and more flexible working arrangements say in surveys that they’ll be seeking new jobs in the coming months. About 26% of workers said they would search for a new gig when the threat of the pandemic decreases, according to Prudential’s Pulse of the American Worker Survey conducted in March.

Whether you’re entry-level or experienced, there are right and wrong ways to make your exit. It’s important to leave a job gracefully. Play it wrong now, and you might lose out on a positive reference or even job opportunities later. Career coaches and former human resource experts say you should follow these tips before you put your resignation in writing.

Don’t blindside your manager

While it can be tempting to leave a bad job as quickly as possible, it’s important to resign professionally. Schedule a meeting with your boss before you put anything in writing. When you schedule the meeting, tell your boss you have something important to discuss, but don’t explicitly say you’re quitting, says Christy Noel, a career coach and co-author of “Your Personal Career Coach.” The meeting should take place face-to-face or over a video call as a professional courtesy.

Your boss should be the first to know about the departure. While it might be tempting to tell your work friends, some of whom might know you interviewed elsewhere, this can backfire, says Melody Wilding, an executive coach and author of “Trust Yourself: Stop Overthinking and Channel Your Emotions for Success at Work.” Ms. Wilding has had clients whose work friends spread the news of their departure, which has resulted in their boss finding out about the new position through the rumor mill. This not only strains the friendship, it can be embarrassing for the manager, who then has to scramble to respond. “It’s really a gesture of respect to your boss,” she says.

Prepare for a range of reactions, Ms. Noel says. “They may have suspected something or they may be totally caught off-guard,” she says.

Keep your resignation letter simple

Your resignation letter is primarily meant to serve as proof in your HR file that you left the company, Ms. Noel says. Because it serves as a follow-up to the conversation you have with your boss, less is more. Most resignation letters run only a few sentences, and are addressed directly to your direct supervisor, not to their boss or the HR manager.

Make sure you’re locked into your decision to resign before hitting send. Once it’s sent, the company will begin its offboarding process. “The resignation letter is irrefutable,” says Cara Heilmann, chief executive of the career coaching firm Ready Reset Go, based in Walnut Creek, Calif., and a former HR professional.

If you don’t have anything nice to say, don’t say much

In her many years of reading resignation letters, Ms. Heilmann says she’s seen three approaches. Some people spell out every reason they’re leaving, others concisely state when their last day will be and some take the time to cheerfully reflect on their time with the company. “Those that are straightforward or cheerful are seen in a more positive light than someone who feels like they want to help the organization as they leave,” she says.

You don’t have to tell your employer what you’re doing after you leave the company or why you’re moving on if you don’t feel comfortable. “Don’t air your grievances,” Ms. Noel says. “Just say, ‘I really appreciate the opportunity you’ve given me.’ ”

If you can’t muster the energy to write a positive resignation letter, then Ms. Heilmann suggests using what she calls a “Just the facts, ma’am” resignation. It can be one sentence that says you are resigning, followed by your intended last day.

Give two weeks’ notice—at least

Even if you feel like you can’t spend another minute at your workplace, experts say the age-old adage holds true. The customary thing to do is give at least two weeks’ notice, but those in executive positions often give more time to allow the company the chance to find a replacement.

Many of Ms. Wilding’s clients give three to four weeks’ notice to help manage their transition. But even if you give two weeks, she suggests you offer to help put together a transition plan. It can include your current projects, as well as next steps. Include as much detail as you have time for.

“Having that one source of truth that’s a transition document for your successor demonstrates that you’re being proactive, you care about the organization and will help leave everything on a good note,” she says.

Express gratitude

Your resignation letter is the last impression you leave with the company. Ms. Heilmann has known people who have been terminated for cause, but have left in such a positive manner that they have been rehired in the future. “If you can muster the energy to give a more positive one, it does help you out,” she says.

Ms. Heilmann recalled a resignation letter that started with, “It’s been an amazing ride,” then went on to thank the manager for the opportunity and for all he had learned.

Let go of your baggage

After you send off your resignation letter, take some time to reflect. Sometimes taking a break between jobs can help you reset. But even if you can’t take time off, it’s important to let go of any negative feelings you may have about your former job so you don’t carry that baggage with you into a new position, Ms. Heilmann says.

If you bring these negative feelings to your new job, it will affect your relationships with your co-workers, as well as anyone who reminds you of your old boss. “If I could give any words of wisdom, especially to those who are early-career, it’s to figure out a way to manage that transition so you start completely baggage-free,” she says.

Write to Allison Pohle at allison.pohle@wsj.com

Appeared in the June 14, 2021, print edition as 'How to Leave Your Job With Grace.'