to be worth it
Very common, not strictly idiom but useful.
Learning Spanish is worth it.
—Is the course worth it? —Totally, it's worth every euro.