pwm mosfet

Quick question, if I have a logic level mosfet and input 5v to the gate and 5v to the source I will get 5v output, correct? But if I input 2.5v into the gate will I get an output of 2.5v? Is this correct?

Ennsjosh:
Quick question, if I have a logic level mosfet and input 5v to the gate and 5v to the source I will get 5v output, correct? But if I input 2.5v into the gate will I get an output of 2.5v? Is this correct?

No.
If you ground the source and put 5volt on the gate, then the mosfet acts as a switch to ground.

Is this related to: forum.arduino.cc/index.php?topic=339375

Explain what you want to do. Then we might be able to help.
Leo..

My goal is to make a adjustable voltage regulator with the mosfet and a pwm pin. Thanks

Is this the 6volt/30Amp "coil heating" project.
Leo..

You guessed it

It is for a "vape", the reason I would like adjustable is for different coils I put in the circuit to achieve different heat or some flavors taste better at a lower temp so I would like to have that flexibility

Forget about voltage.
Switch the element on/off with the mosfet (PWM).
PWM switches the heating element on/off very fast. 500 times per second.
50% PWM means that the element is on 50% of the time. It appears to use half the power.
Which mosfet have you bought, and are the batteries able to cope with that amout of current.
Leo..