Salary Comparison

Lawyer vs Software Engineer Salary

Lawyers earn approximately 8.1% more than Software Engineers nationally — $135,000 vs $124,000.

Lawyer
$135,000
national median annual
Hourly (40 hr × 52 wk)
$65
Biweekly (26 paychecks)
$5,192
Monthly
$11,250
Category
Legal
Software Engineer
$124,000
national median annual
Hourly (40 hr × 52 wk)
$60
Biweekly (26 paychecks)
$4,769
Monthly
$10,333
Category
Tech
Difference
Annual difference
Software Engineer earn less than Lawyer
-$11,000
Percentage difference
−8.1%
Hourly difference
-$5/hour
Monthly difference
-$917/month
Lifetime difference (40-yr career)
Naive — doesn't include compounding raises
-$440,000

Lawyers earn approximately $11,000 more per year than Software Engineers — about 9% — with comparable entry requirements.

What it takes to get in

Lawyer roles typically require a doctoral or professional degree, while Software Engineer roles require a bachelor's degree. Counting everything it takes to become employable — degree plus any apprenticeship, residency, or licensing exam — that is roughly 7 years for Lawyer and 4 for Software Engineer.

Those extra years are not free. Over a 40-year working life, becoming a Lawyer consumes about 7 of them in training rather than earning, against 4 on the Software Engineer path. Holding pay flat at the median and ignoring raises, that leaves roughly $4,455,000 of lifetime gross for the Lawyer versus $4,464,000 for the Software Engineer — $9,000 behind, because the head start compounds. Actual pay rises with tenure, so the arithmetic understates both sides — it is directional, not predictive.

Only one of the two is gated by licensing: Lawyer requires State bar exam and admission required to practice, while Software Engineer does not. That cuts both ways — a license is a real barrier when you are trying to enter, and a real moat once you hold one, because it limits how quickly the labor supply can grow.

Pay range, not just the median

The medians hide most of what matters. Lawyer pay runs from roughly $72,780 at the low end to $239,200 at the high end; Software Engineer runs $76,000 to $208,000. The title sets the band; specialization, employer size, and location decide where inside it you actually sit.

The two bands are shaped differently. Lawyer top earners make about 3.3× what beginners make, against 2.7× for Software Engineer. A wide band means the ceiling rewards specializing and the median understates what is achievable; a narrow one means pay is more predictable and less dependent on landing the right niche.

Where each field is heading

The Bureau of Labor Statistics projects Lawyer employment to grow 4% over the decade to 2034 — growing about as fast as average — against growth of 15% for Software Engineer.

Growth rate is not the same thing as opportunity. Lawyer roles see roughly 31,500 openings a year and Software Engineer roles about 140,100, counting replacements for people who retire or leave. Software Engineer has the larger raw number, which is usually what you feel when actually job hunting — a small field growing fast can still be harder to break into than a large flat one.

What the work is actually like

Lawyer: Law firm, corporate legal dept, government office, or courtroom. Software Engineer: Office or remote, writing/testing code at a computer most of the day.

Moving between the two

These two barely touch. Legal and Tech draw on separate training pipelines, and employers in one rarely read experience in the other as relevant. Budget for a real reset. No shortcut exists; a JD and bar passage are mandatory, though paralegals and compliance professionals often transition into law school with relevant experience. Adjacent fields (data engineering, DevOps, QA automation) transfer easily since the core skill is programming; switching in from a non-technical field usually requires 6-12 months of self-study plus shipped projects to pass interviews.

If you are entering rather than switching: Lawyer — Earn a 4-year bachelor's degree, take the LSAT, complete a 3-year JD at an ABA-accredited law school, then pass the state bar exam. Software Engineer — CS bachelor's degree with internships during school is the dominant path; a smaller share enter via coding bootcamp plus a public GitHub portfolio and pass technical interviews without a CS degree.

Pay ranges, education requirements, and employment projections come from the Bureau of Labor Statistics Occupational Outlook Handbook and Occupational Employment and Wage Statistics. See our methodology for how these are compiled and updated.

Other comparisons in Legal

Other comparisons in Tech

Related tools

Lawyer salary by state Software Engineer salary by state Best cities for Lawyer Best cities for Software Engineer Paycheck Calculator Investment Calculator.

Frequently Asked Questions

Who earns more, a Lawyer or a Software Engineer?
Lawyers earn more at the median — approximately $135,000 a year against $124,000, a gap of $11,000 or 9%. The ranges overlap though: Lawyer pay starts around $72,780 and Software Engineer pay reaches about $208,000 at the top, so an experienced Software Engineer can out-earn a new Lawyer.
How much longer does it take to become a Lawyer?
About 3 years longer. Lawyer takes roughly 7 years from zero to employable — a doctoral or professional degree, plus State bar exam and admission required to practice — against about 4 years for Software Engineer. Those are years spent not earning, which is the cost people leave out of the comparison.
Which has the better job outlook, Lawyer or Software Engineer?
Software Engineer, by the BLS projections: +15% employment change through 2034 versus +4% for Lawyer. Openings matter as much as growth rate — Lawyer averages about 31,500 openings a year and Software Engineer about 140,100, including replacement of workers who leave the field.
Do you need a license to work as a Lawyer?
Yes — State bar exam and admission required to practice. Software Engineer has no equivalent requirement. Licensing slows entry but also limits how fast the labor supply can expand, which tends to support pay over time. Requirements are set state by state, so check reciprocity before assuming a license travels with you.
How much does location change this comparison?
National medians. Metro-level pay for both Lawyer and Software Engineer swings well over 30% around these figures, and the gap between the two is not constant — it widens in some markets and closes in others. Check the salary-by-state pages before treating a national comparison as your local one.