How to find taxonomy parent id from child taxonomy page?

the answer actually turned out to be incredibly simple. Since I was already:

$term = $wp_query->queried_object;

I could simple do:

$term->parent