The Basic Mechanics
Stars form inside giant molecular clouds, mostly hydrogen gas mixed with some helium and trace dust. When a region inside one of these clouds gets dense enough, gravity starts winning over internal pressure, and the gas begins collapsing inward. That sounds straightforward until you realize most of these clouds are supported by magnetic fields and turbulence, so they don't just collapse on command. You need a trigger—sometimes a nearby supernova shockwave, sometimes just a random overlap of cloud streams, sometimes something as mundane as a spiral arm density wave passing through the galaxy. As the blob collapses, it fragments. Not every fragment becomes a star. A lot of them become brown dwarfs or just get blown apart by outflows from their neighbors. The ones that do make it to the main sequence have to reach about 0.08 solar masses. Below that, you never get sustained hydrogen fusion going. That threshold is hard and fast. I ran simulations on this a few years back, and the boundary is surprisingly clean—there's basically no grey zone at 75 to 80 Jupiter masses.
Where Do Stars Come From
The honest answer is that we know the general process really well, but the detailed physics is still an active research area with real disagreements between groups. The standard picture goes like this: a molecular cloud core becomes gravitationally unstable, collapses, forms a protostar surrounded by an accretion disk, and then either blows away the remaining envelope or keeps feeding until it hits the main sequence. The whole thing takes somewhere between 100,000 and a few million years depending on mass. Higher mass stars form faster because their gravity is stronger and they accrete more aggressively. If you're trying to observe star formation, optical light is almost useless. The dust in these clouds is thick enough to block visible light completely. You need infrared. Instruments like JWST, Spitzer (RIP), or ground-based telescopes with adaptive optics and infrared cameras are what you work with. Even then, you're looking through parsecs of obscuring material. Protostellar outflows are one of the few things visible in optical. These are jets of gas shooting out at hundreds of kilometers per second from the poles of the forming star. They create HH objects—Herbig-Haro objects—which are the glowing shock fronts where the jet hits surrounding gas. I spent a summer taking spectra of HH objects with a teaching telescope at my undergrad, and the first thing that trips you up is that the exposure times are long and the objects move. Not perceptibly to the eye, but over weeks of monitoring, the proper motion becomes measurable. If you're doing your own observations, track your reference stars carefully.
The Problem That Almost No One Warns You About
When you're simulating star formation or even just analyzing data from it, the biggest headache is resolution versus domain size. You can't resolve the details of a collapsing core at the same time as the entire molecular cloud. It's a fundamental tradeoff. The workaround most people end up using is nested grids or adaptive mesh refinement, where you zoom in on the interesting bits and keep the broader context at lower resolution. I ran into this specifically when I was trying to model the fragmentation of a single core. My simulation kept producing way more small clumps than realistic—basically numerical noise masquerading as physics. The fix wasn't anything dramatic. It was increasing the spatial resolution in the dense regions and making sure the cooling function was physically accurate rather than using a simplified isothermal assumption. Isothermal collapse is fine for quick estimates, but real gas cools via molecular line emission, and that cooling rate changes how the fragment masses distribute. When I switched to a proper cooling curve, the minimum fragment mass dropped into a more realistic range and the spurious clumping went away.
Get the Full Details

Common Misunderstandings
People often think star formation is rare or slow on galactic scales. It's not. The Milky Way forms roughly one to three solar masses of stars per year. That's continuous, spread across many clouds simultaneously. What's rare is finding a good example close by. Most star formation happens in regions too distant or too obscured to study in detail. Another misconception is that stars form in isolation. They almost never do. The typical stellar association has dozens to thousands of members forming roughly at the same time from the same parent cloud. This matters because massive stars that form early will radiation-ionize and mechanically disrupt the rest of the cloud, potentially shutting off further star formation or triggering new rounds of collapse in denser clumps. Feedback is a two-way street: gravity pulls things together, and stellar feedback tears them apart.
Limitations of What We Know
Here's the blunt part: we still don't have a complete, predictive theory of star formation. The initial mass function—the distribution of stellar masses at birth—emerges from the physics but we can't derive it from first principles alone. Simulations get closer each year, but they're still limited by resolution, incomplete physics (magnetic fields, cosmic rays, chemistry), and the fact that you can't easily simulate a whole molecular cloud at the resolution needed to track individual protostars. For practical purposes, if you're doing observational work, the biggest bottleneck is time. Infrared facilities are oversubscribed. Ground-based work is limited by atmospheric seeing unless you have adaptive optics, which means you need a bright guide star nearby, which isn't always available in star-forming regions because the region itself is dusty and the bright stars are behind the dust. The workaround is lucky imaging or interferometry, but both have their own constraints. Radio observations of molecular lines like CO or N(H) tracers are your best bet for mapping the cold gas, but they tell you about the cloud, not the star forming inside it. You need a multi-wavelength approach, and that's expensive in telescope time.