IV can be computed exactly, if you know the "correct" option premium.That's probably because people on the buy-side will be more interested in the ask and people on the sell-side will be more interested in the bid. I think it's important to remember that IV is, in a sense, a make believe number... it's trying to quantify expectations; of which there may be quite a few. The real question IMHO when trading vol is: what is your expectation.
Usually it's computed from (Bid + Ask) / 2, ie. the MidPrice, regarded Bid and Ask are non-zero...
Of course also using the other option parameters like Spot, DTE, Strike, Risk-free-rate etc.
Example: for the Call option below it gives a wrong IV of 500.