• Home
  • Latest
  • Fortune 500
  • Finance
  • Tech
  • Leadership
  • Lifestyle
  • Rankings
  • Multimedia

Trendingnow

1

As CEO of the $96 billion Sam’s Club, Latriece Watkins is testing her mettle at the warehouse retailer that produced CEOs for Walmart, Target, and Walgreens

2

Jeff Bezos wants the bottom half of earners to pay zero income tax—he says nurses making just $75K should save $12K a year

3

The river that supplies 40 million Americans is down to 23% — and about to make a $25 million bet on one fish

1

As CEO of the $96 billion Sam’s Club, Latriece Watkins is testing her mettle at the warehouse retailer that produced CEOs for Walmart, Target, and Walgreens

2

Jeff Bezos wants the bottom half of earners to pay zero income tax—he says nurses making just $75K should save $12K a year

3

The river that supplies 40 million Americans is down to 23% — and about to make a $25 million bet on one fish
LeadershipElon Musk

During ‘the most concentrated pain’ in his life, Elon Musk saved Tesla and created ‘the algorithm’ that would become his manufacturing and management philosophy

Paolo Confino
By
Paolo Confino
Paolo Confino
Reporter
Down Arrow Button Icon
Paolo Confino
By
Paolo Confino
Paolo Confino
Reporter
Down Arrow Button Icon
September 13, 2023, 6:07 PM ET
Elon Musk at a Tesla factory
Elon Musk personally oversaw efforts to overhaul Tesla's Fremont, Calif., factory from 2017 to 2018. Noah Berger—Bloomberg/Getty Images

One of Elon Musk’s biggest accomplishments happened during what he refers to as the darkest, most difficult time in his life. 

Recommended Video

In July 2017, Tesla had just introduced its Model 3 sedan, a more moderately priced electric vehicle compared to its earlier models. The company had a year to figure out how to produce 5,000 Model 3 sedans a week, the amount Musk had calculated was needed to keep the company afloat. But he didn’t have enough time to build more production lines, so he had to find ways to speed up the ones he already had. The turmoil led Musk to come up with what became known as “the algorithm —the five rules for overhauling Tesla and rescuing it from financial ruin,” according to a new biography by Walter Isaacson released earlier this week. 

  • Question every requirement 
  • Delete any part of the process you can 
  • Simplify and optimize
  • Accelerate the cycle time
  • Automate

A time of “concentrated pain” and a floundering company

In a roughly year-long span from the summer of 2017 to the fall of 2018 Musk was in a difficult place both personally (Isaacson describes “foul moods that led to catatonic trances and depressive paralysis”) and professionally (Tesla was $2.2 billion in the red). 

“That was the time of the most concentrated pain I’ve ever had,” Musk told his biographer in a new book released this week. “Eighteen months of unrelenting insanity. It was mind-bogglingly painful.” 

At work he was struggling with circling short-sellers, investors who bet the company’s shares would crater because they believed his manufacturing goals were impossible. Outside of work he was facing the combination of a tumultuous breakup with the actress Amber Heard, who he told a Rolling Stone reporter he “really loved,” and troubling news from his dad. Errol Musk had impregnated the woman that he had previously raised as a stepdaughter. Things spilled over into public view, with Musk wondering aloud on Twitter (before he purchased the social media platform) if he was bipolar. 

At the time, he was yet to become one of the world’s richest and most famous men. Musk was a wealthy but mercurial executive who had previously been pushed out of online payment service PayPal. In fact, his exorbitant wealth would only come about as a result of an unorthodox pay package at Tesla, which he would collect only after the company reached a valuation of $650 billion. Otherwise he would get nothing. 

Just as Musk didn’t have the same status then as he does now, neither did Tesla. In 2017, it was a company with promising technology, but  many investors felt it had overpromised on its manufacturing goals. Because Musk had told investors that Tesla was indeed on track to meet the production numbers, the company would risk a stock collapse if it didn’t meet the deadline he’d imposed. Skeptical of Musk, some big investors had begun shorting Tesla stock, certain that it wouldn’t make enough cars to be financially viable. Short-sellers “are leeches on the neck of business,” Musk told Isaacson. 

In a blog post in August 2018, Musk called Tesla “the most shorted stock in history.” While that may have been an overstatement—there were some $13 billion in Tesla short positions, according to S&P Global Market Intelligence—it was still a huge sum. Short-sellers who bet against Tesla alternated big paydays (making $1 billion in a single day in August 2018) and substantial losses (taking $1.3 billion in paper losses on one occasion).  

Musk coped with the stress of possibly losing his car company and a complicated personal situation in one of the only ways he knew how. “In times of emotional darkness, Musk throws himself into his work, maniacally,” Isaacson writes. 

To help Tesla reach the ambitious production targets he’d set for it, Musk began working in the factory to identify every single facet of its assembly lines that could be sped up in order for the company to hit its production goal. It ultimately led to the creation of “the algorithm” that would become a mantra for him and all of Tesla’s employees. 

Tesla’s scrambles create the algorithm 

Whenever one of Musk’s companies is given one of his incredibly difficult, possibly unfeasible orders, he expects his employees to work around the clock like he does. Musk calls these bursts of condensed effort “surges.” Isaacson says Musk likes to think of himself as a field general “personally surging into the breach with an all-hands-on-deck cadre of fellow fanatics.” 

It was under these circumstances that Musk honed “the algorithm,” ramping up production at Tesla’s gigafactory in Nevada and its other plant in Fremont, Calif. Musk admits he repeated it to an “annoying degree.” When he did so, “his executives would move their lips and mouth the words, like they would chant the liturgy along with their priest,” Isaacson writes. 

The algorithm is a step-by-step process that requires employees to question every aspect of a given process—safety regulations, the number of bolts in a car part, whether a task should be automated or not. 

Throughout the process Musk patrolled the factory floors, personally inspecting the assembly lines and troubleshooting problems as they came up. On one occasion he demanded a machine installing bolts move faster, so he rewrote its code on the fly. “Factory settings are always idiotic,” Isaacson says he told employees, after he reconfigured the machine to go more than three times faster. 

Musk also took a series of unorthodox approaches over this period, to mixed results. Ignoring conventional manufacturing practice, he insisted on designing Tesla’s Fremont factory by installing machines to automate every task from the outset instead of first using human labor and then automating where possible. After that turned out to be a disaster, he reversed course and became fixated on removing robots he felt were too slow. When he realized the factory floor had insufficient capacity he ordered the construction of a massive tent in a parking lot to house an additional assembly line. 

Eventually Tesla would produce record numbers of  Model 3s in the second quarter of 2018, according to the company. 

Tesla stock soars, as working conditions come under scrutiny

In the aftermath of the crunch that ultimately stabilized Tesla, Musk became the world’s richest individual. His Tesla holdings were worth an estimated $90 billion as of August, according to Nasdaq data. The company’s stock price has climbed from $20.88 in July 2017, when Tesla rolled out its first Model 3, to $267.48 on Tuesday, an 1,181% increase. Tesla now has an $838 billion market cap. 

But the gung-ho tactics Musk employed came at a distinctly human cost. Tesla has an injury rate that is 30% higher than the rest of the car industry, according to the book. Employees also alleged they were pressured to cut corners by using electrical tape to cover cracks in plastic brackets that hold electrical parts within the car and forced to work in smoky air during California’s wildfires, CNBC reported. The company denied these claims. 

Tesla’s soaring stock price and some of the tactics Musk employed to keep it high drew scrutiny from regulators. In September 2018, Musk and Tesla paid $40 million to settle an SEC lawsuit that he manipulated the company’s stock when he tweeted that he was taking Tesla private. As part of the settlement he was also forced to step down as the company’s chairman, although he remained CEO.  
More recently, Musk has applied the same all-in approach when he bought X, the former Twitter. Soon after his acquisition last year, he reportedly sent employees an email demanding they work “long hours at high intensity.” So far, results have been mixed, with ad revenue down, and few subscribers to X’s paid offerings. But given that analysts and commentators had similar doubts about Tesla, it may be a similar chips-are-down moment for the eccentric executive.

About the Author
Paolo Confino
By Paolo ConfinoReporter

Paolo Confino is a former reporter on Fortune’s global news desk where he covers each day’s most important stories.

See full bioRight Arrow Button Icon

Latest in Leadership

Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025

Most Popular

Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Finance
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam
By Fortune Editors
October 20, 2025
Fortune Secondary Logo
Rankings
  • 100 Best Companies
  • Fortune 500
  • Global 500
  • Fortune 500 Europe
  • Most Powerful Women
  • World's Most Admired Companies
  • See All Rankings
  • Lists Calendar
Sections
  • Finance
  • Fortune Crypto
  • Features
  • Leadership
  • Health
  • Commentary
  • Success
  • Retail
  • Mpw
  • Tech
  • Lifestyle
  • CEO Initiative
  • Asia
  • Politics
  • Conferences
  • Europe
  • Newsletters
  • Personal Finance
  • Environment
  • Magazine
  • Education
Customer Support
  • Frequently Asked Questions
  • Customer Service Portal
  • Privacy Policy
  • Terms Of Use
  • Single Issues For Purchase
  • International Print
Commercial Services
  • Advertising
  • Fortune Brand Studio
  • Fortune Analytics
  • Fortune Conferences
  • Business Development
  • Group Subscriptions
About Us
  • About Us
  • Press Center
  • Work At Fortune
  • Terms And Conditions
  • Site Map
  • About Us
  • Press Center
  • Work At Fortune
  • Terms And Conditions
  • Site Map
  • Facebook icon
  • Twitter icon
  • LinkedIn icon
  • Instagram icon
  • Pinterest icon

Latest in Leadership

Dan Rogers speaking on stage.
AIAsana
Asana was battered by the AI boom. Now it’s betting its future on humans and agents working together.
By Beatrice NolanMay 29, 2026
2 hours ago
Exclusive: Microsoft is building a super app that combines coding, chat, and other Copilot AI tools
AIMicrosoft
Exclusive: Microsoft is building a super app that combines coding, chat, and other Copilot AI tools
By Sebastian HerreraMay 29, 2026
4 hours ago
dimon
SuccessGen Z
Jamie Dimon tells Gen Z to ‘learn how to think, learn how to earn respect’ as he describes ‘great meeting’ with Zohran Mamdani
By Nick LichtenbergMay 29, 2026
5 hours ago
Conan O'Brien holds up a Harvard sports sweater given to him after he delivered the commencement address at Harvard University
SuccessCareers
Conan O’Brien tells Harvard graduates to play down their $250K Ivy League degree—and instead embrace being humble and ‘bad at things’
By Preston ForeMay 29, 2026
5 hours ago
The AI arms race in cybersecurity has started. Most companies aren’t ready
Cryptocyber
The AI arms race in cybersecurity has started. Most companies aren’t ready
By Philip MartinMay 29, 2026
5 hours ago
Lisa Su, CEO of AMD
SuccessJobs
AMD CEO Lisa Su tells grads they shape the future, not AI—and the world doesn’t just need ‘people who know how to use powerful tools’
By Emma BurleighMay 29, 2026
5 hours ago

Most Popular

As CEO of the $96 billion Sam’s Club, Latriece Watkins is testing her mettle at the warehouse retailer that produced CEOs for Walmart, Target, and Walgreens
Magazine
As CEO of the $96 billion Sam’s Club, Latriece Watkins is testing her mettle at the warehouse retailer that produced CEOs for Walmart, Target, and Walgreens
By Emma HinchliffeMay 27, 2026
3 days ago
Jeff Bezos wants the bottom half of earners to pay zero income tax—he says nurses making just $75K should save $12K a year
Success
Jeff Bezos wants the bottom half of earners to pay zero income tax—he says nurses making just $75K should save $12K a year
By Preston ForeMay 21, 2026
8 days ago
The river that supplies 40 million Americans is down to 23% — and about to make a $25 million bet on one fish
Environment
The river that supplies 40 million Americans is down to 23% — and about to make a $25 million bet on one fish
By Dorany Pineda, Brittany Peterson and The Associated PressMay 27, 2026
2 days ago
As AI slashes white-collar jobs, Salesforce CEO Marc Benioff says almost no one is being hired—except in sales
Success
As AI slashes white-collar jobs, Salesforce CEO Marc Benioff says almost no one is being hired—except in sales
By Emma BurleighMay 28, 2026
1 day ago
Current price of oil as of May 28, 2026
Personal Finance
Current price of oil as of May 28, 2026
By Joseph HostetlerMay 28, 2026
1 day ago
Jamie Dimon said the American Dream was slipping away. JPMorgan just put $40 million on the table to fix it
Banking
Jamie Dimon said the American Dream was slipping away. JPMorgan just put $40 million on the table to fix it
By Nick LichtenbergMay 27, 2026
2 days ago

© 2026 Fortune Media IP Limited. All Rights Reserved. Use of this site constitutes acceptance of our Terms of Use and Privacy Policy | CA Notice at Collection and Privacy Notice | Do Not Sell/Share My Personal Information
FORTUNE is a trademark of Fortune Media IP Limited, registered in the U.S. and other countries. FORTUNE may receive compensation for some links to products and services on this website. Offers may be subject to change without notice.