Borax and boric acid: related, but not the same
Both come from boron, a natural element mined from dry lake beds. That shared background is why they get mixed up.
Borax
Borax is sodium tetraborate β the white powder sold in the laundry aisle to boost detergent, soften water and clean. It's a salt, mildly alkaline, and dissolves fairly well in water. The box is labeled as a cleaning product, so it doesn't carry pest-control directions.
Boric acid
Boric acid is made by treating borax with a strong acid. It's a weak acid itself, and it contains more boron by weight than borax does. When it's sold for roaches, ants or silverfish, it's an EPA-registered pesticide, with a label that tells you where it may be used, how much, and what safety steps to follow. Boric acid is also used in some eye washes and antiseptics, which is part of why it has a reputation as "gentle" β but the concentration in roach dust is far higher.
How they kill insects
The mode of action is the same: an insect swallows the powder β by eating a bait or grooming dust off its body β and it disrupts its gut. Death takes days, not minutes. That slowness is actually useful for social insects like ants and German roaches, because workers live long enough to share the bait.