Have you ever revealed how much you earn to coworkers? Your answer to that question may depend on your age.

The September issue of Harvard Law School’s Program on Negotiation newsletter discusses the trend of openness about wages between coworkers and how it may be affecting job negotiations.

Comparing salaries has long been a social taboo in the United States, but members of the millennial generation — people born in the 1980s and 1990s — are changing that, according to Kevin Hallock, director of Cornell University’s Institute for Compensation Studies.

According to a recent Wall Street Journal article, when 25-year-old Dustin Zick was preparing to leave his job with an online retailer, he compared salaries with five or six co-workers. Several of the coworkers strategized about salaries they hoped to attain and how they might negotiate for them. The discussions helped Zick meet his target salary at his next job.

Accustomed to sharing minute details of their lives on Facebook and Twitter, Millennials appear to be carrying that penchant for self-disclosure into their work lives. Websites such as Glassdoor.com, where people can post their salaries and other information about their jobs, are spurring this trend. That may be bad news for employers, who see value in encouraging employees to keep mum about their salaries.

What’s fair?

Employers have long believed that open discussion of salaries can create problems in the workplace. Knowledge of pay differences can reduce morale and productivity, researchers have found. To take just one example, the smaller the salary gap between the highest- and lowest-paid players within Major League Baseball teams, the better the team’s performance, Craig Depken of the University of North Carolina found. When we feel unfairly compensated by our organizations relative to others, we may not work as hard as we would otherwise.

Human beings have a strong desire for fairness. Yet our interpretation of what constitutes a fair salary is strongly skewed by our perspective. If you learn that a colleague who has the same job earns more than you do, you may overlook the fact that she has more experience or greater responsibilities. Our perceptions of unfairness, whether factual or not, can breed envy, discontent, and lower productivity.

Moreover, we tend to be highly driven by status concerns — that is, we care a great deal about how we measure up to others. Finding out that someone you consider to be a peer is earning more than you do could cause you to be less satisfied with your own accomplishments and also more displeased with your organization.

Negotiating in a more open workplace

If salary disclosure is, indeed, a growing trend, how can managers and employees alike engage in salary negotiations that satisfy both parties’ interest?

For employees, it’s important to move beyond your own perspective to consider possible explanations for pay discrepancies that you might have overlooked, such as whether similar-seeming colleagues have stronger credentials, greater seniority, or longer work hours. Consult others in your field, or review objective industry standards before making demands that could offend or annoy your employer. If you do find solid evidence that you are underpaid, present your employer with the facts as you see them, being careful to stress that you believe any discrepancy is unintentional.

As for employers, many rely on elaborate job grade systems that divide employees into levels with set salaries. Such clear guidelines may seem rigid, yet they can improve the odds that employees will feel fairly treated relative to others at their level.

Some employers are throwing the old rules about salary sharing out the window and striving for complete transparency. New York data analytics company SumAll, for example, reveals pay scales and individual salaries companywide. SumAll believes its employees are more efficient when they aren’t trying to guess how much others are earning, according to the Journal.